* net.cc (cygwin_getaddrinfo): Check hints for non-NULL before

checking its content.
This commit is contained in:
Corinna Vinschen 2009-03-27 15:10:18 +00:00
parent 52e26dc2ab
commit e5d5e036fd
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-03-27 Corinna Vinschen <corinna@vinschen.de>
* net.cc (cygwin_getaddrinfo): Check hints for non-NULL before
checking its content.
2009-03-27 Corinna Vinschen <corinna@vinschen.de>
* fhandler.h (class fhandler_fifo): Rename read/write methods to

View File

@ -4213,6 +4213,7 @@ cygwin_getaddrinfo (const char *hostname, const char *servname,
convert the returned IPv4 addresses into v4-in-v6 entries. This
is done in ga_dup if the v4mapped flag is set. */
if (!wincap.supports_all_posix_ai_flags ()
&& hints
&& hints->ai_family == AF_INET6
&& (hints->ai_flags & AI_V4MAPPED)
&& (ret == EAI_NODATA || ret == EAI_NONAME