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:
parent
8d11da3546
commit
d30e269ecc
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user