don't violate the bn_check_top assertion in BN_mod_inverse_no_branch()
diff --git a/crypto/bn/bn_div.c b/crypto/bn/bn_div.c
index 9addaf1..257fe0c 100644
--- a/crypto/bn/bn_div.c
+++ b/crypto/bn/bn_div.c
@@ -618,6 +618,7 @@
 			rm->neg = neg;
 		bn_check_top(rm);
 		}
+	bn_correct_top(res);
 	BN_CTX_end(ctx);
 	return(1);
 err: