diff options
author | Bodo Möller <bodo@openssl.org> | 2011-10-13 14:21:39 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2011-10-13 14:21:39 +0000 |
commit | 0a06ad76a11d0952230a2a1f60c4112ff25255ce (patch) | |
tree | 7bc38e2386fa1ae105e09fa8badff57da74d3537 /crypto | |
parent | bf6d2f986d47fa7f96ab9ede407bc3976a686b0f (diff) |
Avoid failed assertion in BN_DEBUG builds
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/bn/bn_gf2m.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/bn/bn_gf2m.c b/crypto/bn/bn_gf2m.c index 70770a2536..2cd93ddc76 100644 --- a/crypto/bn/bn_gf2m.c +++ b/crypto/bn/bn_gf2m.c @@ -644,6 +644,9 @@ int BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) ret = 1; err: +#ifdef BN_DEBUG /* BN_CTX_end would complain about the expanded form */ + bn_correct_top(c); +#endif BN_CTX_end(ctx); return ret; } |