]> granicus.if.org Git - neomutt/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)
committerRichard Russon <rich@flatcap.org>
Thu, 13 Dec 2018 23:07:37 +0000 (23:07 +0000)
ncrypt/smime.c

index 6a09bc4d1643a7b3f4dc4ffd4c37096bbbf1f5f0..00bf1e8169e903a1bceed889e1b71052fe098052 100644 (file)
@@ -2196,7 +2196,7 @@ static struct Body *smime_handle_entity(struct Body *m, struct State *s, FILE *o
       m->goodsig = true;
     FREE(&line);
   }
-  else
+  else if (p)
   {
     m->goodsig = p->goodsig;
     m->badsig = p->badsig;