From: Thomas Roessler Date: Fri, 3 Mar 2006 09:55:46 +0000 (+0000) Subject: Fix mutt/2189; lack of error checking in the query code. X-Git-Tag: mutt-1-5-12-rel~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=375e2fd36b41c92c4c3270ae5f7290d8b842ebe6;p=mutt Fix mutt/2189; lack of error checking in the query code. --- diff --git a/query.c b/query.c index 6e61efcc..4dabceed 100644 --- a/query.c +++ b/query.c @@ -64,7 +64,8 @@ static ADDRESS *result_to_addr (QUERY *r) { static ADDRESS *tmp; - tmp = rfc822_cpy_adr (r->addr); + if (!(tmp = rfc822_cpy_adr (r->addr))) + return NULL; if(!tmp->next && !tmp->personal) tmp->personal = safe_strdup (r->name);