nwrap: fix numeric port detection in nwrap_getaddrinfo
authorMichael Adam <obnox@samba.org>
Fri, 6 Nov 2015 09:22:10 +0000 (10:22 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 11 Jan 2016 11:25:28 +0000 (12:25 +0100)
commit522631b739821fd53d996d986197af1fb837ef2a
treec7d127e855c22bee8bfcb279350363c21a5f997b
parent72764a6fd31da438cfe4d117dc2cafc1c8907c2d
nwrap: fix numeric port detection in nwrap_getaddrinfo

Only a string that can be converted to a number, is
allowed as a numeric port specification. Trailing
characters are not allowed.

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