From 9cde55ad2d4cb68ad61167e570f83894a1a04423 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 31 Jan 2007 15:30:42 +0000 Subject: [PATCH] * net.cc (cygwin_getaddrinfo): Fix thinko in AI_ADDRCONFIG handling. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/net.cc | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 2b2c530ea..73b85050e 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2007-01-31 Corinna Vinschen + + * net.cc (cygwin_getaddrinfo): Fix thinko in AI_ADDRCONFIG handling. + 2007-01-31 Corinna Vinschen * net.cc (cygwin_getaddrinfo): Check ai_flags for valid values. diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 5ece8590f..ad99bc277 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -3902,8 +3902,7 @@ cygwin_getaddrinfo (const char *hostname, const char *servname, apparently for performance reasons. To get the POSIX default behaviour, the AI_ALL flag has to be set. */ if (wincap.has_gaa_on_link_prefix () - && hints && (hints->ai_flags & AI_ADDRCONFIG) - && hints->ai_family == PF_UNSPEC) + && hints && hints->ai_family == PF_UNSPEC) { nhints = *hints; hints = &nhints;