summaryrefslogtreecommitdiff
path: root/ctdb/protocol/protocol_keepalive.c
diff options
context:
space:
mode:
authorSwen Schillig <swen@linux.ibm.com>2019-01-29 13:03:20 +0100
committerJeremy Allison <jra@samba.org>2019-03-01 00:32:10 +0000
commite96bccc879a675856b3a875db2d718445410caea (patch)
tree8fc364e953432ca0cf92a5a40f4a68816f7b493c /ctdb/protocol/protocol_keepalive.c
parent414bc3748b6fbd54cbd50a0ff1f20cbe31b06ccc (diff)
downloadsamba-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