nwrap: Better check service string sanity.
authorRobin Hack <hack.robin@gmail.com>
Tue, 13 Oct 2015 12:41:14 +0000 (14:41 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 11 Jan 2016 11:25:28 +0000 (12:25 +0100)
commit72764a6fd31da438cfe4d117dc2cafc1c8907c2d
tree6e6e98a6247334dd794a36e8ff405b8e3379672c
parent200f5bf138ede63ad446c70ac291e79020262054
nwrap: Better check service string sanity.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11501

Patch use strtol() instead of atoi() to convert strings to numbers.
This helps better check sanity of service input string.

Signed-off-by: Robin Hack <hack.robin@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
lib/nss_wrapper/nss_wrapper.c