nwrap: fix treatment of EAI_ADDRINFO in nwrap_files_getaddrinfo
authorMichael Adam <obnox@samba.org>
Thu, 12 Nov 2015 07:16:18 +0000 (08:16 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 11 Jan 2016 11:25:31 +0000 (12:25 +0100)
commit34cff9e72947bbed536be185de814dfccaf40204
tree3b77fba02943f08d916583219c16cf9abe563380
parent154080ce8549174a858a6170137d2355f9d31cb0
nwrap: fix treatment of EAI_ADDRINFO in nwrap_files_getaddrinfo

Checking whether the passed in name (node) is a valid IPv6 or IPv4
address, we can do the checking for these two error conditions
properly up front.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/nss_wrapper/nss_wrapper.c