X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fec%2Fec_lib.c;h=baf94f6a574ff796b42f11b6ffdeeb161f5c9ac3;hp=47318d672a2b4a82bea519f7e9844e0afa1f655c;hb=de61c03cc7ac52e45d50504e8cf1dda2f5230b28;hpb=64d9844ab6b6fb97ca270e236741f7dd61c1940b diff --git a/crypto/ec/ec_lib.c b/crypto/ec/ec_lib.c index 47318d672a..baf94f6a57 100644 --- a/crypto/ec/ec_lib.c +++ b/crypto/ec/ec_lib.c @@ -330,7 +330,8 @@ const BIGNUM *EC_GROUP_get0_order(const EC_GROUP *group) int EC_GROUP_order_bits(const EC_GROUP *group) { - OPENSSL_assert(group->meth->group_order_bits != NULL); + if (!ossl_assert(group->meth->group_order_bits != NULL)) + return 0; return group->meth->group_order_bits(group); }