Skip to content

Commit

Permalink
Fix compilation failure with ec_elgamal but disable twisted elgamal
Browse files Browse the repository at this point in the history
Fix compilation issue found in Coverage.
  • Loading branch information
dongbeiouba committed Jan 6, 2025
1 parent 9ab553c commit e5a7531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crypto/ec/ec_elgamal_crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ EC_ELGAMAL_CTX *EC_ELGAMAL_CTX_new(EC_KEY *key, const EC_POINT *h, int32_t flag)
ctx->flag = flag;

return ctx;
#ifndef OPENSSL_NO_TWISTED_EC_ELGAMAL
err:
#ifndef OPENSSL_NO_TWISTED_EC_ELGAMAL
OPENSSL_free(buf);
BN_CTX_free(bn_ctx);
#endif
EC_ELGAMAL_CTX_free(ctx);
return NULL;
#endif
}

EC_ELGAMAL_CTX *EC_ELGAMAL_CTX_dup(EC_ELGAMAL_CTX *ctx)
Expand Down

0 comments on commit e5a7531

Please sign in to comment.