summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2004-06-22 07:42:41 +0000
committerhenning <henning@openbsd.org>2004-06-22 07:42:41 +0000
commitb5ab232b08d8a65a4d0aaa074d6b4e6900a1c6fc (patch)
treed2776fbc9960650b78a52dca26f17e4d1705575b
parentPull the plug on source-based routing until remaining bugs are eradicated. (diff)
downloadwireguard-openbsd-b5ab232b08d8a65a4d0aaa074d6b4e6900a1c6fc.tar.xz
wireguard-openbsd-b5ab232b08d8a65a4d0aaa074d6b4e6900a1c6fc.zip
missing bzero in a function for this strange other address family
-rw-r--r--usr.sbin/bgpd/session.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index 544066d5f37..35b22e6253f 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.178 2004/06/22 03:44:26 claudio Exp $ */
+/* $OpenBSD: session.c,v 1.179 2004/06/22 07:42:41 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -2334,6 +2334,7 @@ session_match_mask(struct peer *p, struct sockaddr *ip)
}
if (p->conf.remote_addr.af == AF_INET6) {
+ bzero(&mask, sizeof(mask));
for (i = 0; i < p->conf.remote_masklen / 8; i++)
mask.s6_addr[i] = 0xff;
i = p->conf.remote_masklen % 8;