diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-02-15 10:38:47 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-02-15 10:38:47 +0000 |
commit | 98ad0700383f05865440206ac5ab3b06aa9797a5 (patch) | |
tree | 716591934ebcf0b05ea01401f521d159934492c4 /sysdeps | |
parent | d07e37e2df789c2b1a707ff6fae3e7814bee60ab (diff) | |
download | glibc-98ad0700383f05865440206ac5ab3b06aa9797a5.tar.gz |
Update.
1999-02-15 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/posix/getaddrinfo.c (getaddrinfo): Correct test for
invalid ai_flags.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/posix/getaddrinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index 7502e00e6a..884a27c4e1 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -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) |