]> granicus.if.org Git - neomutt/commitdiff
Protect addr with NONULL in pgp_getkeybyaddr.
authorKevin McCarthy <kevin@8t8.us>
Tue, 10 Feb 2015 20:14:20 +0000 (12:14 -0800)
committerKevin McCarthy <kevin@8t8.us>
Tue, 10 Feb 2015 20:14:20 +0000 (12:14 -0800)
This was introduced by bb3b01f41ed2, but wasn't included in the NONULL
checks added in 9a75aa4bd69e.

pgpkey.c

index bd3265eb6d7944c97c35fbf3e3b6645084110570..654f2f005e4ea480b02c827992cae9439e505195 100644 (file)
--- a/pgpkey.c
+++ b/pgpkey.c
@@ -861,7 +861,7 @@ pgp_key_t pgp_getkeybyaddr (ADDRESS * a, short abilities, pgp_ring_t keyring)
 
     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)
       {