summaryrefslogtreecommitdiff
path: root/usr.sbin/mrouted/snmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/mrouted/snmp.c')
-rw-r--r--usr.sbin/mrouted/snmp.c1
1 files changed, 1 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) */