diff options
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/map-mbone/mapper.c | 1 | ||||
-rw-r--r-- | usr.sbin/mrinfo/mrinfo.c | 1 | ||||
-rw-r--r-- | usr.sbin/mrouted/snmp.c | 1 | ||||
-rw-r--r-- | usr.sbin/mrouted/vif.c | 2 | ||||
-rw-r--r-- | usr.sbin/mtrace/mtrace.c | 3 |
5 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/map-mbone/mapper.c b/usr.sbin/map-mbone/mapper.c index 0f08a23f9dc..930284698c9 100644 --- a/usr.sbin/map-mbone/mapper.c +++ b/usr.sbin/map-mbone/mapper.c @@ -903,6 +903,7 @@ int main(argc, argv) struct sockaddr_in addr; int addrlen = sizeof(addr); + memset(&addr, 0, sizeof addr); addr.sin_family = AF_INET; #if (defined(BSD) && (BSD >= 199103)) addr.sin_len = sizeof addr; diff --git a/usr.sbin/mrinfo/mrinfo.c b/usr.sbin/mrinfo/mrinfo.c index b49f0a9eb44..a856522af37 100644 --- a/usr.sbin/mrinfo/mrinfo.c +++ b/usr.sbin/mrinfo/mrinfo.c @@ -401,6 +401,7 @@ main(argc, argv) struct sockaddr_in addr; int addrlen = sizeof(addr); + memset(&addr, 0, sizeof addr); addr.sin_family = AF_INET; #if (defined(BSD) && (BSD >= 199103)) addr.sin_len = sizeof addr; diff --git a/usr.sbin/mrouted/snmp.c b/usr.sbin/mrouted/snmp.c index 6f203efc826..9dace7a71a1 100644 --- a/usr.sbin/mrouted/snmp.c +++ b/usr.sbin/mrouted/snmp.c @@ -90,6 +90,7 @@ snmp_init(dest_port) perror("socket"); return 1; } + memset(&me, 0, sizeof me); me.sin_family = AF_INET; me.sin_addr.s_addr = INADDR_ANY; /* already in network byte order (I think) */ diff --git a/usr.sbin/mrouted/vif.c b/usr.sbin/mrouted/vif.c index 71b46a989ec..9d7b657e27b 100644 --- a/usr.sbin/mrouted/vif.c +++ b/usr.sbin/mrouted/vif.c @@ -713,6 +713,7 @@ accept_neighbor_request(src, dst) struct sockaddr_in addr; int addrlen = sizeof(addr); + memset(&addr, 0, sizeof addr); addr.sin_family = AF_INET; #if (defined(BSD) && (BSD >= 199103)) addr.sin_len = sizeof addr; @@ -800,6 +801,7 @@ accept_neighbor_request2(src, dst) struct sockaddr_in addr; int addrlen = sizeof(addr); + memset(&addr, 0, sizeof addr); addr.sin_family = AF_INET; #if (defined(BSD) && (BSD >= 199103)) addr.sin_len = sizeof addr; diff --git a/usr.sbin/mtrace/mtrace.c b/usr.sbin/mtrace/mtrace.c index a224fe4ea4e..7c040fecf57 100644 --- a/usr.sbin/mtrace/mtrace.c +++ b/usr.sbin/mtrace/mtrace.c @@ -52,7 +52,7 @@ #ifndef lint static char rcsid[] = - "@(#) $Id: mtrace.c,v 1.12 2002/02/19 19:39:40 millert Exp $"; + "@(#) $Id: mtrace.c,v 1.13 2002/06/02 19:06:39 deraadt Exp $"; #endif #include <netdb.h> @@ -1311,6 +1311,7 @@ Usage: mtrace [-Mlnps] [-w wait] [-m max_hops] [-q nqueries] [-g gateway]\n\ /* * Get default local address for multicasts to use in setting defaults. */ + memset(&addr, 0, sizeof addr); addr.sin_family = AF_INET; #if (defined(BSD) && (BSD >= 199103)) addr.sin_len = sizeof(addr); |