From 0745b595a839fd1f76fbf5809040757a70a7424e Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Tue, 10 Feb 2015 12:14:20 -0800 Subject: [PATCH] Protect addr with NONULL in pgp_getkeybyaddr. This was introduced by bb3b01f41ed2, but wasn't included in the NONULL checks added in 9a75aa4bd69e. --- pgpkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgpkey.c b/pgpkey.c index bd3265eb6..654f2f005 100644 --- 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) { -- 2.40.0