]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/dh/dh_asn1.c
free NULL cleanup
[thirdparty/openssl.git] / crypto / dh / dh_asn1.c
index f470214399b642e3ac7edc2d402050c6ba3fea30..7066cafce64d772e547973452d40300b1d54db12 100644 (file)
@@ -142,8 +142,7 @@ DH *d2i_DHxparams(DH **a, const unsigned char **pp, long length)
     }
 
     if (a) {
-        if (*a)
-            DH_free(*a);
+        DH_free(*a);
         *a = dh;
     }