libcli: Use wrapper for string to integer conversion
commit58e2c1534429c05adb0cf5957d281dca0286fc13
authorSwen Schillig <swen@linux.ibm.com>
Wed, 30 Jan 2019 07:39:15 +0000 (30 08:39 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 1 Mar 2019 00:32:11 +0000 (1 00:32 +0000)
tree999b4b6c4818bc37d331c7635bcfff19c10e4b8c
parente7b7c634e8bb5e9df5c523377458d880a6368ddc
libcli: Use wrapper for string to integer conversion

In order to detect an value overflow error during
the string to integer conversion with strtoul/strtoull,
the errno variable must be set to zero before the execution and
checked after the conversion is performed. This is achieved by
using the wrapper function strtoul_err and strtoull_err.

Signed-off-by: Swen Schillig <swen@linux.ibm.com>
Reviewed-by: Ralph Böhme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/security/dom_sid.c