wbinfo: Use wrapper for string to integer conversion
commitebeae5dcbad898e8ee0d64c4ed44751b753f27de
authorSwen Schillig <swen@linux.ibm.com>
Tue, 29 Jan 2019 13:36:44 +0000 (29 14:36 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 1 Mar 2019 00:32:11 +0000 (1 00:32 +0000)
tree568cb97409333def83f263865758847df0f3e51b
parentea7231dcc0b50c535f913f0542d600d0b2119a21
wbinfo: 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>
nsswitch/wbinfo.c