changeset: 6419:385d7434c9d6
user:      Kevin McCarthy <ke...@8t8.us>
date:      Tue Feb 10 12:14:20 2015 -0800
link:      http://dev.mutt.org/hg/mutt/rev/385d7434c9d6

Protect addr with NONULL in pgp_getkeybyaddr.

This was introduced by bb3b01f41ed2, but wasn't included in the NONULL
checks added in 9a75aa4bd69e.

diffs (12 lines):

diff -r addd7cea01d4 -r 385d7434c9d6 pgpkey.c
--- a/pgpkey.c  Sun Feb 08 14:19:41 2015 -0800
+++ b/pgpkey.c  Tue Feb 10 12:14:20 2015 -0800
@@ -861,7 +861,7 @@
 
     for (q = k->address; q; q = q->next)
     {
-      r = rfc822_parse_adrlist (NULL, q->addr);
+      r = rfc822_parse_adrlist (NULL, NONULL (q->addr));
 
       for (p = r; p; p = p->next)
       {

Reply via email to