]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/pkcs12/p12_p8e.c
Continue standardising malloc style for libcrypto
[thirdparty/openssl.git] / crypto / pkcs12 / p12_p8e.c
index 552f2f0d6189c2ffc53978f2bf760abc127bd06a..c60d124fcb67b15360b9336633ae0dfa88c00c79 100644 (file)
@@ -104,7 +104,7 @@ X509_SIG *PKCS8_set0_pbe(const char *pass, int passlen,
         return NULL;
     }
 
-    if (!(p8 = X509_SIG_new())) {
+    if ((p8 = X509_SIG_new()) == NULL) {
         PKCS12err(PKCS12_F_PKCS8_SET0_PBE, ERR_R_MALLOC_FAILURE);
         ASN1_OCTET_STRING_free(enckey);
         return NULL;