]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/dh/dh_ameth.c
free NULL cleanup 7
[thirdparty/openssl.git] / crypto / dh / dh_ameth.c
index f3abe0774f20e2d4fe0a85fdc9af0e3f96887f87..6a4223c1673f25362e99fb211ffd0695337565c9 100644 (file)
@@ -463,8 +463,7 @@ static int int_dh_bn_cpy(BIGNUM **dst, const BIGNUM *src)
             return 0;
     } else
         a = NULL;
-    if (*dst)
-        BN_free(*dst);
+    BN_free(*dst);
     *dst = a;
     return 1;
 }