aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2009-06-14 10:41:10 +0000
committerMatthias Andree <matthias.andree@gmx.de>2009-06-14 10:41:10 +0000
commita9ec148ec8b36acbf9184708ebbcc2d9f40adb31 (patch)
treee4f60d14fa6d44eec26ebc20cf36eef617442357 /driver.c
parent029ef0fa423c2a90c87f09a28454680d4421d306 (diff)
downloadfetchmail-a9ec148ec8b36acbf9184708ebbcc2d9f40adb31.tar.gz
fetchmail-a9ec148ec8b36acbf9184708ebbcc2d9f40adb31.tar.bz2
fetchmail-a9ec148ec8b36acbf9184708ebbcc2d9f40adb31.zip
Merge and extend Redhat's AI_ADDRCONFIG patch.
svn path=/branches/BRANCH_6-3/; revision=5357
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index 4a2e3233..4a98442d 100644
--- a/driver.c
+++ b/driver.c
@@ -1010,6 +1010,9 @@ static int do_session(
hints.ai_socktype = SOCK_STREAM;
hints.ai_family = AF_UNSPEC;
hints.ai_flags = AI_CANONNAME;
+#ifdef AI_ADDRCONFIG
+ hints.ai_flags |= AI_ADDRCONFIG;
+#endif
error = fm_getaddrinfo(ctl->server.queryname, NULL, &hints, &res);
if (error)