free NULL cleanup
[openssl.git] / crypto / pkcs12 / p12_kiss.c
index 4fd8b8c2294f58eeb01334d443f66f8735b4038f..fcfa986824747efbe9737e7bfce4bd301db779f0 100644 (file)
@@ -161,7 +161,7 @@ int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert,
 
  err:
 
-    if (pkey && *pkey)
+    if (pkey)
         EVP_PKEY_free(*pkey);
     if (cert && *cert)
         X509_free(*cert);