diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-12-11 20:17:17 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-12-11 20:17:17 +0000 |
commit | 92f3cbd9697a008c65a51f67f7dd9ffe720d317c (patch) | |
tree | 5e5291829fb3f9f0563fa1148fb107bd130f84d7 /checkalias.c | |
parent | c017bf2a4e68579c031803a6c36dea85035d30b8 (diff) | |
download | fetchmail-92f3cbd9697a008c65a51f67f7dd9ffe720d317c.tar.gz fetchmail-92f3cbd9697a008c65a51f67f7dd9ffe720d317c.tar.bz2 fetchmail-92f3cbd9697a008c65a51f67f7dd9ffe720d317c.zip |
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
Diffstat (limited to 'checkalias.c')
-rw-r--r-- | checkalias.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |