x86_64 assembly pack: make Windows build more robust.
[openssl.git] / crypto / bn / bn_recp.c
index 10fe869d28e204f019795e74ae53165adcd534e4..0145d0fa9b21d003f2d26ab0c6896cdc8a3ff5d5 100644 (file)
@@ -56,6 +56,8 @@
  * [including the GNU Public Licence.]
  */
 
+#define OPENSSL_FIPSAPI
+
 #include <stdio.h>
 #include "cryptlib.h"
 #include "bn_lcl.h"
@@ -204,8 +206,8 @@ int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,
        ret=1;
 err:
        BN_CTX_end(ctx);
-       if(dv) bn_check_top(dv);
-       if(rem) bn_check_top(rem);
+       bn_check_top(dv);
+       bn_check_top(rem);
        return(ret);
        }