Make sure that BN_from_montgomery keeps the BIGNUMS in proper format
diff --git a/crypto/bn/bn_mont.c b/crypto/bn/bn_mont.c
index 5817538..dcee538 100644
--- a/crypto/bn/bn_mont.c
+++ b/crypto/bn/bn_mont.c
@@ -297,6 +297,8 @@
 		}
 	for (ri+=4; i<ri; i++)
 		rp[i]=nrp[i], ap[i]=0;
+	bn_correct_top(r);
+	bn_correct_top(ret);
 #else
 	if (bn_wexpand(ret,al) == NULL) return(0);
 	ret->top=al;