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)
committerAndreas Schneider <asn@samba.org>
Fri, 13 Nov 2015 08:38:15 +0000 (09:38 +0100)
commitdeb7ea555fb3e766117075bfb8da1e41773e79a9
tree037382e69287e0a5794df4c17a895b99128684e3
parent99f1ca607a7bf84cdfa1d214c2bb7ddfa49b3647
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>
src/nss_wrapper.c