diff options
author | Ronnie Sahlberg <sahlberg@ronnie> | 2007-08-15 12:34:41 +1000 |
---|---|---|
committer | Ronnie Sahlberg <sahlberg@ronnie> | 2007-08-15 12:34:41 +1000 |
commit | 6fc0653b97c7c9f509147ffb0de303d50cee32de (patch) | |
tree | c99166896378a139a28e4664c39d23f1b19eb8ae /ctdb/common/system_linux.c | |
parent | 1fa787e667d53ebff0be07816eeb4dbce278ddf1 (diff) | |
download | samba-6fc0653b97c7c9f509147ffb0de303d50cee32de.tar.gz samba-6fc0653b97c7c9f509147ffb0de303d50cee32de.tar.xz samba-6fc0653b97c7c9f509147ffb0de303d50cee32de.zip |
zero out the sa struct to supress a valgrind error
(This used to be ctdb commit b17ff60ad4c5fac76d3f77dacb10c30ae564bf09)
Diffstat (limited to 'ctdb/common/system_linux.c')
-rw-r--r-- | ctdb/common/system_linux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ctdb/common/system_linux.c b/ctdb/common/system_linux.c index 2262ccdd57..2b054cd446 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)); |