Avoid failed assertion in BN_DEBUG builds
This commit is contained in:
parent
bf6d2f986d
commit
0a06ad76a1
@ -644,6 +644,9 @@ int BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
|
|||||||
ret = 1;
|
ret = 1;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
|
#ifdef BN_DEBUG /* BN_CTX_end would complain about the expanded form */
|
||||||
|
bn_correct_top(c);
|
||||||
|
#endif
|
||||||
BN_CTX_end(ctx);
|
BN_CTX_end(ctx);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user