summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorroam <roam@FreeBSD.org>2002-02-01 08:35:16 +0000
committerroam <roam@FreeBSD.org>2002-02-01 08:35:16 +0000
commit02723a65d828f54266ac9a574df63c974a484928 (patch)
tree433bd339e82899828bb1b3d73904d45c76de16df /lib
parent3a4c55659375ef9a57b9dc33755d9711a577232f (diff)
downloadFreeBSD-src-02723a65d828f54266ac9a574df63c974a484928.zip
FreeBSD-src-02723a65d828f54266ac9a574df63c974a484928.tar.gz
Return ENONAME if getaddrinfo() is called with AI_NUMERICHOST
and the hostname given is not numeric. PR: 34390 Submitted by: Serge van den Boom <svdb@stack.nl> Approved by: silence from -net MFC after: 1 month
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/net/getaddrinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c
index 8ff92c2..d98aba4e 100644
--- a/lib/libc/net/getaddrinfo.c
+++ b/lib/libc/net/getaddrinfo.c
@@ -511,7 +511,7 @@ getaddrinfo(hostname, servname, hints, res)
goto good;
if (pai->ai_flags & AI_NUMERICHOST)
- ERR(EAI_NODATA);
+ ERR(EAI_NONAME);
if (hostname == NULL)
ERR(EAI_NODATA);
OpenPOWER on IntegriCloud