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 9addaf1..257fe0c 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: