From 6fc0653b97c7c9f509147ffb0de303d50cee32de Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Wed, 15 Aug 2007 12:34:41 +1000 Subject: [PATCH] zero out the sa struct to supress a valgrind error (This used to be ctdb commit b17ff60ad4c5fac76d3f77dacb10c30ae564bf09) --- ctdb/common/system_linux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ctdb/common/system_linux.c b/ctdb/common/system_linux.c index 2262ccdd575..2b054cd4460 100644 --- a/ctdb/common/system_linux.c +++ b/ctdb/common/system_linux.c @@ -45,6 +45,8 @@ int ctdb_sys_send_arp(const struct sockaddr_in *saddr, const char *iface) unsigned char buffer[64]; /*minimum eth frame size */ char *ptr; + ZERO_STRUCT(sa); + /* for now, we only handle AF_INET addresses */ if (saddr->sin_family != AF_INET) { DEBUG(0,(__location__ " not an ipv4 address (family is %u)\n", saddr->sin_family)); -- 2.47.3