summaryrefslogtreecommitdiff
path: root/sys/net/pf_table.c
diff options
context:
space:
mode:
authorCedric Berger <cedric@cvs.openbsd.org>2003-01-01 22:07:58 +0000
committerCedric Berger <cedric@cvs.openbsd.org>2003-01-01 22:07:58 +0000
commit6af2311e665f9915a9315c9d804a44a5959b4fc3 (patch)
tree8bfc19940fc2797873612c521a2624f3b4452b97 /sys/net/pf_table.c
parent03e3042fc759b5be02d4cafbde4f96cdd70f5ae1 (diff)
Repair my last commit - zero the 2 radix nodes before inserting into table.
Diffstat (limited to 'sys/net/pf_table.c')
-rw-r--r--sys/net/pf_table.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/pf_table.c b/sys/net/pf_table.c
index 60be778b357..3d77e4b7f0d 100644
--- a/sys/net/pf_table.c
+++ b/sys/net/pf_table.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_table.c,v 1.8 2003/01/01 16:08:52 henning Exp $ */
+/* $OpenBSD: pf_table.c,v 1.9 2003/01/01 22:07:57 cedric Exp $ */
/*
* Copyright (c) 2002 Cedric Berger
@@ -794,6 +794,7 @@ pfr_route_kentry(struct pfr_ktable *kt, struct pfr_kentry *ke)
struct radix_node_head *head;
int s;
+ bzero(ke->pfrke_node, sizeof(ke->pfrke_node));
if (ke->pfrke_af == AF_INET)
head = kt->pfrkt_ip4;
else