diff --git a/ctdb/common/system_linux.c b/ctdb/common/system_linux.c index 6c0efc1f024..0d5ea631b9d 100644 --- a/ctdb/common/system_linux.c +++ b/ctdb/common/system_linux.c @@ -413,10 +413,12 @@ int ctdb_sys_send_tcp(const ctdb_sock_addr *dest, ifname, if non-NULL, will return the name of the interface this ip is tied to */ -bool ctdb_sys_have_ip(ctdb_sock_addr *addr) +bool ctdb_sys_have_ip(ctdb_sock_addr *_addr) { int s; int ret; + ctdb_sock_addr __addr = *_addr; + ctdb_sock_addr *addr = &__addr; switch (addr->sa.sa_family) { case AF_INET: