* net.cc (cygwin_getaddrinfo): Fix thinko in AI_ADDRCONFIG handling.
This commit is contained in:
parent
c2decfdc8a
commit
9cde55ad2d
|
@ -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>
|
2007-01-31 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* net.cc (cygwin_getaddrinfo): Check ai_flags for valid values.
|
* net.cc (cygwin_getaddrinfo): Check ai_flags for valid values.
|
||||||
|
|
|
@ -3902,8 +3902,7 @@ cygwin_getaddrinfo (const char *hostname, const char *servname,
|
||||||
apparently for performance reasons. To get the POSIX default
|
apparently for performance reasons. To get the POSIX default
|
||||||
behaviour, the AI_ALL flag has to be set. */
|
behaviour, the AI_ALL flag has to be set. */
|
||||||
if (wincap.has_gaa_on_link_prefix ()
|
if (wincap.has_gaa_on_link_prefix ()
|
||||||
&& hints && (hints->ai_flags & AI_ADDRCONFIG)
|
&& hints && hints->ai_family == PF_UNSPEC)
|
||||||
&& hints->ai_family == PF_UNSPEC)
|
|
||||||
{
|
{
|
||||||
nhints = *hints;
|
nhints = *hints;
|
||||||
hints = &nhints;
|
hints = &nhints;
|
||||||
|
|
Loading…
Reference in New Issue