diff options
author | Swen Schillig <swen@linux.ibm.com> | 2019-01-29 13:03:20 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-03-01 00:32:10 +0000 |
commit | e96bccc879a675856b3a875db2d718445410caea (patch) | |
tree | 8fc364e953432ca0cf92a5a40f4a68816f7b493c /ctdb/protocol/protocol_keepalive.c | |
parent | 414bc3748b6fbd54cbd50a0ff1f20cbe31b06ccc (diff) | |
download | samba-e96bccc879a675856b3a875db2d718445410caea.tar.gz |
ctdb-protocol: 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 'ctdb/protocol/protocol_keepalive.c')
0 files changed, 0 insertions, 0 deletions