]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/asn1/asn_mime.c
Explicitly test against NULL; do not use !p or similar
[thirdparty/openssl.git] / crypto / asn1 / asn_mime.c
index 3282163199b5ebee986377368fc0f9ebefb0fd73..757fe9eb7a12d3971480c1fd00aba27031148de7 100644 (file)
@@ -399,7 +399,7 @@ ASN1_VALUE *SMIME_read_ASN1(BIO *bio, BIO **bcont, const ASN1_ITEM *it)
     if (strcmp(hdr->value, "multipart/signed") == 0) {
         /* Split into two parts */
         prm = mime_param_find(hdr, "boundary");
-        if (!prm || !prm->param_value) {
+        if (prm == NULL || prm->param_value == NULL) {
             sk_MIME_HEADER_pop_free(headers, mime_hdr_free);
             ASN1err(ASN1_F_SMIME_READ_ASN1, ASN1_R_NO_MULTIPART_BOUNDARY);
             return NULL;