]> granicus.if.org Git - mutt/commitdiff
Fix NULL pointer dereference in notation name
authorPetr Pisar <petr.pisar@atlas.cz>
Tue, 18 Dec 2012 00:47:37 +0000 (16:47 -0800)
committerPetr Pisar <petr.pisar@atlas.cz>
Tue, 18 Dec 2012 00:47:37 +0000 (16:47 -0800)
closes #3574

crypt-gpgme.c

index 34740bbdbd63ef7a27f5ad9f62c70dc8f9de6d61..24928dd859391ae69e8a3118baf72d6585ec6d35 100644 (file)
@@ -73,7 +73,8 @@
 #define xtoi_2(p)   ((xtoi_1(p) * 16) + xtoi_1((p)+1))
 
 #define PKA_NOTATION_NAME "pka-address@gnupg.org"
-#define is_pka_notation(notation) (! strcmp ((notation)->name, \
+#define is_pka_notation(notation) ((notation)->name && \
+                                   ! strcmp ((notation)->name, \
                                             PKA_NOTATION_NAME))
 
 /* Values used for comparing addresses. */