groupdb: Use wrapper for string to integer conversion
authorSwen Schillig <swen@linux.ibm.com>
Mon, 28 Jan 2019 12:12:09 +0000 (13:12 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 1 Mar 2019 00:32:10 +0000 (00:32 +0000)
commitfef2a7ca0a87dc3de25480b8070f8090d5f1cb09
tree0e1a81874533ab6d54e50e27cb2c86ad2d4d9629
parentc9f4b92a6131dedcaa38d6fe907d17a30a595f06
groupdb: 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/groupdb/mapping.c
source3/groupdb/mapping_tdb.c