1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-03 12:58:35 +03:00

nwrap: fix return code for getaddrinfo in case service is not valid

If the specified service is not a valid service name (or port number),
EAI_NONAME should be returned.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Michael Adam 2015-11-06 11:00:54 +01:00
parent 40f9bf7835
commit 5bea2dc13f

View File

@ -5108,7 +5108,7 @@ static int nwrap_getaddrinfo(const char *node,
if (p != NULL) {
freeaddrinfo(p);
}
return EAI_SERVICE;
return EAI_NONAME;
}
}