X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fasn1%2Fasn_mime.c;h=d7ec801b1e779948f98cd4660402f5a085b475ab;hp=a4527a160ac024ccbd5c0f4eaea21f11d22f2cb5;hb=030648cea98faeba94a510ecc6e3d283040eec5c;hpb=68efafc513788863339c199d22048ef275832094 diff --git a/crypto/asn1/asn_mime.c b/crypto/asn1/asn_mime.c index a4527a160a..d7ec801b1e 100644 --- a/crypto/asn1/asn_mime.c +++ b/crypto/asn1/asn_mime.c @@ -918,6 +918,8 @@ static MIME_PARAM *mime_param_find(MIME_HEADER *hdr, const char *name) static void mime_hdr_free(MIME_HEADER *hdr) { + if (hdr == NULL) + return; OPENSSL_free(hdr->name); OPENSSL_free(hdr->value); if (hdr->params)