summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-06-22 07:42:42 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-06-22 07:42:42 +0000
commit985cca8e136940af1765208cb18f184480f26fd7 (patch)
treea0d70501c0391cc6d97d0b308fe237c70a1a4ea0 /usr.sbin
parentac3b343f65ddf5d97e0f854daf4f8d608b7e9b13 (diff)
missing bzero in a function for this strange other address family
Diffstat (limited to 'usr.sbin')
-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;