From 985cca8e136940af1765208cb18f184480f26fd7 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Tue, 22 Jun 2004 07:42:42 +0000 Subject: missing bzero in a function for this strange other address family --- usr.sbin/bgpd/session.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin') 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 @@ -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; -- cgit v1.2.3