]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
zero out the sa struct to supress a valgrind error
authorRonnie Sahlberg <sahlberg@ronnie>
Wed, 15 Aug 2007 02:34:41 +0000 (12:34 +1000)
committerRonnie Sahlberg <sahlberg@ronnie>
Wed, 15 Aug 2007 02:34:41 +0000 (12:34 +1000)
(This used to be ctdb commit b17ff60ad4c5fac76d3f77dacb10c30ae564bf09)

ctdb/common/system_linux.c

index 2262ccdd5751879015940b6f0e56d82af6d13809..2b054cd446051a8d33136331b0c27e7746e3b996 100644 (file)
@@ -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));