summaryrefslogtreecommitdiff
path: root/usr.sbin/mrouted
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-02 19:06:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-02 19:06:40 +0000
commit0afd87567cee441f46043bbe24a0f8e37ac1935a (patch)
tree6d7cca17c52400ffee47068f2f8c4dde20aa8c64 /usr.sbin/mrouted
parentd83ba9005c291b2642cdf233be1f7c7f13018ed5 (diff)
missing sockaddr inits; ok itojun
Diffstat (limited to 'usr.sbin/mrouted')
-rw-r--r--usr.sbin/mrouted/snmp.c1
-rw-r--r--usr.sbin/mrouted/vif.c2
2 files changed, 3 insertions, 0 deletions
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;