mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-16 18:10:11 +00:00
Update.
1999-02-15 Ulrich Drepper <drepper@cygnus.com> * sysdeps/posix/getaddrinfo.c (getaddrinfo): Correct test for invalid ai_flags.
This commit is contained in:
parent
d07e37e2df
commit
98ad070038
@ -1,3 +1,8 @@
|
||||
1999-02-15 Ulrich Drepper <drepper@cygnus.com>
|
||||
|
||||
* sysdeps/posix/getaddrinfo.c (getaddrinfo): Correct test for
|
||||
invalid ai_flags.
|
||||
|
||||
1999-02-15 Andreas Jaeger <aj@arthur.rhein-neckar.de>
|
||||
|
||||
* manual/llio.texi (Waiting for I/O): Correct meaning. Patch by
|
||||
|
@ -533,7 +533,7 @@ getaddrinfo (const char *name, const char *service,
|
||||
if (hints == NULL)
|
||||
hints = &default_hints;
|
||||
|
||||
if (hints->ai_flags & ~3)
|
||||
if (hints->ai_flags & ~(AI_PASSIVE|AI_CANANONNAME|AI_NUMERICHOST))
|
||||
return EAI_BADFLAGS;
|
||||
|
||||
if ((hints->ai_flags & AI_CANONNAME) && name == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user