* net.cc (cygwin_getaddrinfo): Fix thinko in AI_ADDRCONFIG handling.

This commit is contained in:
Corinna Vinschen 2007-01-31 15:30:42 +00:00
parent c2decfdc8a
commit 9cde55ad2d
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2007-01-31 Corinna Vinschen <corinna@vinschen.de>
* net.cc (cygwin_getaddrinfo): Fix thinko in AI_ADDRCONFIG handling.
2007-01-31 Corinna Vinschen <corinna@vinschen.de>
* net.cc (cygwin_getaddrinfo): Check ai_flags for valid values.

View File

@ -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;