nwrap: correctly track EAI_ADDRINFO in nwrap_files_getaddrinfo
authorMichael Adam <obnox@samba.org>
Thu, 12 Nov 2015 07:01:57 +0000 (08:01 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 11 Jan 2016 11:25:30 +0000 (12:25 +0100)
commit154080ce8549174a858a6170137d2355f9d31cb0
tree5a0b8f214177384699d24851b3ec08111f77d909
parent0dc34ea56afec67472af29dbb4c361dd27c7841b
nwrap: correctly track EAI_ADDRINFO in nwrap_files_getaddrinfo

When looping through the entry list and remember the
EAI_ADDRINFO case, so that we can differentiate
the cases
- no entry found at all
- an entry found buy wrong address type

Adapt return codes accordingly.

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