Update copyright; generated files.
[openssl.git] / crypto / bn / bn_sqrt.c
index 232af99a216d853552d8260dcaf9f02908ad6aa5..7ae7536d67a694b0a2b37f78fed26da44cba53cb 100644 (file)
@@ -1,4 +1,3 @@
-/* crypto/bn/bn_sqrt.c */
 /*
  * Written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> and Bodo
  * Moeller for the OpenSSL project.
@@ -57,7 +56,7 @@
  *
  */
 
-#include "cryptlib.h"
+#include "internal/cryptlib.h"
 #include "bn_lcl.h"
 
 BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
@@ -398,9 +397,8 @@ BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
 
  end:
     if (err) {
-        if (ret != NULL && ret != in) {
+        if (ret != in)
             BN_clear_free(ret);
-        }
         ret = NULL;
     }
     BN_CTX_end(ctx);