winbindd: Use wrapper for string to integer conversion
commitfdd529792639a60683df927a8e02d47d2749fd10
authorSwen Schillig <swen@linux.ibm.com>
Mon, 28 Jan 2019 13:07:39 +0000 (28 14:07 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 1 Mar 2019 00:32:10 +0000 (1 00:32 +0000)
tree631497d86f8a6c3d468301bb6d3882582567177e
parentc957f6cc069aef32d88bd6a46584a262c65579db
winbindd: 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>
source3/winbindd/idmap_ldap.c
source3/winbindd/winbindd_lookuprids.c
source3/winbindd/winbindd_util.c