1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

common: Make parse_ip() valgrind-clean

Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit c0bb147ca09e82019b05ec22995623cffc3184e2)
This commit is contained in:
Martin Schwenke 2013-09-09 16:16:24 +10:00
parent 8d11da3546
commit d30e269ecc

View File

@ -467,6 +467,8 @@ bool parse_ip(const char *addr, const char *ifaces, unsigned port, ctdb_sock_add
char *p;
bool ret;
ZERO_STRUCTP(saddr); /* valgrind :-) */
/* now is this a ipv4 or ipv6 address ?*/
p = index(addr, ':');
if (p == NULL) {