summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mrouted/vif.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2002-06-02 19:06:39 +0000
committerderaadt <deraadt@openbsd.org>2002-06-02 19:06:39 +0000
commit0085026ed629cac855f7092c446584d9ad0e696c (patch)
tree7a0c5001ffbbc45705bfba6a4e0a65639dc88e4a /usr.sbin/mrouted/vif.c
parentSkeleton driver for the NetOctave NSP2000 (only supports RNG at the moment) (diff)
downloadwireguard-openbsd-0085026ed629cac855f7092c446584d9ad0e696c.tar.xz
wireguard-openbsd-0085026ed629cac855f7092c446584d9ad0e696c.zip
missing sockaddr inits; ok itojun
Diffstat (limited to 'usr.sbin/mrouted/vif.c')
-rw-r--r--usr.sbin/mrouted/vif.c2
1 files changed, 2 insertions, 0 deletions
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;