Explicitly test against NULL; do not use !p or similar
[openssl.git] / crypto / pkcs12 / p12_add.c
index f23bfed853e0530503fafaff00c7a06f6fb2c08b..06837f537fbe2fbb088538d51fe893167e00f3f2 100644 (file)
@@ -106,7 +106,7 @@ PKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen,
     else
         pbe = PKCS5_pbe_set(pbe_nid, iter, salt, saltlen);
 
-    if (!pbe) {
+    if (pbe == NULL) {
         PKCS12err(PKCS12_F_PKCS12_PACK_P7ENCDATA, ERR_R_MALLOC_FAILURE);
         goto err;
     }