projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf6d2f9
)
Avoid failed assertion in BN_DEBUG builds
author
Bodo Möller
<bodo@openssl.org>
Thu, 13 Oct 2011 14:21:39 +0000
(14:21 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Thu, 13 Oct 2011 14:21:39 +0000
(14:21 +0000)
crypto/bn/bn_gf2m.c
patch
|
blob
|
history
diff --git
a/crypto/bn/bn_gf2m.c
b/crypto/bn/bn_gf2m.c
index 70770a25365ec85c8543f121f0eb3e121f6e9d85..2cd93ddc76cf3bdadccd5640606fa5ceb6f82ba0 100644
(file)
--- 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;
}