libwbclient: Use wrapper for string to integer conversion
authorSwen Schillig <swen@linux.ibm.com>
Tue, 29 Jan 2019 13:21:25 +0000 (14:21 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 1 Mar 2019 00:32:11 +0000 (00:32 +0000)
commitea7231dcc0b50c535f913f0542d600d0b2119a21
tree517658a92fbbde53fa5e0f0af61d89cd4c7b3500
parent81cc7a35189fffc0538997e739f4556142ae5458
libwbclient: 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/libwbclient/wbc_idmap.c
nsswitch/libwbclient/wbc_sid.c
nsswitch/libwbclient/wscript