Explicitly test against NULL; do not use !p or similar
[openssl.git] / crypto / pkcs12 / p12_p8e.c
index b9b34c249581226cf20ee5d1fc5909c1a983dafc..14df4fdea4acb44ea0eccdf861355359fddef100 100644 (file)
@@ -28,7 +28,7 @@ X509_SIG *PKCS8_encrypt(int pbe_nid, const EVP_CIPHER *cipher,
         ERR_clear_error();
         pbe = PKCS5_pbe_set(pbe_nid, iter, salt, saltlen);
     }
-    if (!pbe) {
+    if (pbe == NULL) {
         PKCS12err(PKCS12_F_PKCS8_ENCRYPT, ERR_R_ASN1_LIB);
         return NULL;
     }