nwrap: fix return code of getaddrinfo for AI_NUMERICSERV in error case
authorMichael Adam <obnox@samba.org>
Fri, 6 Nov 2015 09:45:15 +0000 (10:45 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 11 Jan 2016 11:25:28 +0000 (12:25 +0100)
commit40f9bf7835d2119bc127520f2f2d355787567f0a
treefad0ac47bb3f67746c1eb9afb1516761b31830bb
parent522631b739821fd53d996d986197af1fb837ef2a
nwrap: fix return code of getaddrinfo for AI_NUMERICSERV in error case

If the AI_NUMERICSERV flag is specified, the the port number
has to specified as a string representing a decimal number
or left NULL.

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