Oops - ectest.c finds further problems beyond those exposed by bntext.c
authorBodo Möller <bodo@openssl.org>
Thu, 13 Oct 2011 14:29:59 +0000 (14:29 +0000)
committerBodo Möller <bodo@openssl.org>
Thu, 13 Oct 2011 14:29:59 +0000 (14:29 +0000)
crypto/bn/bn_gf2m.c

index 2cd93ddc76cf3bdadccd5640606fa5ceb6f82ba0..ee7a358c6920db1e74d02de79cacdb31f1d34a37 100644 (file)
@@ -646,6 +646,8 @@ int BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
 err:
 #ifdef BN_DEBUG /* BN_CTX_end would complain about the expanded form */
         bn_correct_top(c);
+        bn_correct_top(u);
+        bn_correct_top(v);
 #endif
        BN_CTX_end(ctx);
        return ret;