summaryrefslogtreecommitdiff
path: root/source3/groupdb/mapping.c
diff options
context:
space:
mode:
authorSwen Schillig <swen@linux.ibm.com>2019-01-28 12:54:07 +0100
committerJeremy Allison <jra@samba.org>2019-03-01 00:32:10 +0000
commitc9f4b92a6131dedcaa38d6fe907d17a30a595f06 (patch)
tree58464a590db1ffce09885e24b5b3f16e43b3e3f1 /source3/groupdb/mapping.c
parentcef18c2dfd60be372eee10cbcefd5849ae979d31 (diff)
downloadsamba-c9f4b92a6131dedcaa38d6fe907d17a30a595f06.tar.gz
lib: 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>
Diffstat (limited to 'source3/groupdb/mapping.c')
0 files changed, 0 insertions, 0 deletions