Skip to content

Commit

Permalink
Avoid failed assertion in BN_DEBUG builds
Browse files Browse the repository at this point in the history
  • Loading branch information
45264 committed Oct 13, 2011
1 parent bf6d2f9 commit 0a06ad7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crypto/bn/bn_gf2m.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0a06ad7

Please sign in to comment.