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>
Fri, 6 Nov 2015 08:12:12 +0000 (09:12 +0100)
commitb10d23be266109e2569b4f814d554fc2b706a2a3
treec20e82975fe8dc5dcc1338e2c5f91d628176adc8
parentdb42fc7286ed2de4b9a3d14ce76ebd55ac5c5d48
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>
src/nss_wrapper.c