1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

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
This commit is contained in:
Peter Pentchev 2002-02-01 08:35:16 +00:00
parent 60e104f3f5
commit b484faa5e0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90053

View File

@ -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);