From 92f3cbd9697a008c65a51f67f7dd9ffe720d317c Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 11 Dec 2005 20:17:17 +0000 Subject: Fix segfault (null pointer dereference) on some operating systems with fetchmail's obsolete DNS MX/host alias lookups in multidrop mode. Patch by Dr.-Ing. Andreas Haakh. svn path=/branches/BRANCH_6-3/; revision=4537 --- checkalias.c | 1 + 1 file changed, 1 insertion(+) (limited to 'checkalias.c') diff --git a/checkalias.c b/checkalias.c index fd00502f..9447ec20 100644 --- a/checkalias.c +++ b/checkalias.c @@ -157,6 +157,7 @@ int is_host_alias(const char *name, struct query *ctl) hints.ai_family=AF_UNSPEC; hints.ai_protocol=PF_UNSPEC; hints.ai_socktype=SOCK_STREAM; + hints.ai_flags=AI_CANONNAME; e = getaddrinfo(name, NULL, &hints, &res); if (e == 0) -- cgit v1.2.3