nwrap: fix return code for getaddrinfo in case service is not valid
authorMichael Adam <obnox@samba.org>
Fri, 6 Nov 2015 10:00:54 +0000 (11:00 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 11 Jan 2016 11:25:28 +0000 (12:25 +0100)
commit5bea2dc13f56b1cb52a3724c2fb1cc2007926a5b
tree31283995dee39d62e07555232c197478768b66dc
parent40f9bf7835d2119bc127520f2f2d355787567f0a
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>
lib/nss_wrapper/nss_wrapper.c