don't violate the bn_check_top assertion in BN_mod_inverse_no_branch()
authorBodo Möller <bodo@openssl.org>
Thu, 19 Apr 2007 14:45:57 +0000 (14:45 +0000)
committerBodo Möller <bodo@openssl.org>
Thu, 19 Apr 2007 14:45:57 +0000 (14:45 +0000)
crypto/bn/bn_div.c

index 9addaf158f53f724102292f58f19788f7a7655e7..257fe0ce01b2f19fdfb10062be775fa852fd9dc1 100644 (file)
@@ -618,6 +618,7 @@ X) -> 0x%08X\n",
                        rm->neg = neg;
                bn_check_top(rm);
                }
+       bn_correct_top(res);
        BN_CTX_end(ctx);
        return(1);
 err: