From: Kevin McCarthy Date: Wed, 12 Dec 2018 02:41:37 +0000 (-0800) Subject: Fix possible smime crash if the read mime header p is NULL. X-Git-Tag: mutt-1-11-2-rel~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29da7c2a3038193b08803e608801b152462e85d0;p=mutt Fix possible smime crash if the read mime header p is NULL. --- diff --git a/smime.c b/smime.c index 940c003b..e4c8743a 100644 --- a/smime.c +++ b/smime.c @@ -2012,7 +2012,7 @@ static BODY *smime_handle_entity (BODY *m, STATE *s, FILE *outFile) m->goodsig = 1; FREE (&line); } - else + else if (p) { m->goodsig = p->goodsig; m->badsig = p->badsig;