]> granicus.if.org Git - mutt/commitdiff
Fix possible smime crash if the read mime header p is NULL.
authorKevin McCarthy <kevin@8t8.us>
Wed, 12 Dec 2018 02:41:37 +0000 (18:41 -0800)
committerKevin McCarthy <kevin@8t8.us>
Wed, 12 Dec 2018 20:41:30 +0000 (12:41 -0800)
smime.c

diff --git a/smime.c b/smime.c
index 940c003b1a749423d153a4f95e5c4d30b441e2a7..e4c8743a56a42adb24fcc50f51e491bdff4add5b 100644 (file)
--- 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;