summaryrefslogtreecommitdiff
path: root/sys/net/pf_norm.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-10-17 22:21:43 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-10-17 22:21:43 +0000
commit79aeaf4eb921caacca26a326e18967c5f9e16460 (patch)
tree63470ccb0b19c5dc18ffb46e867459dbbf7d43a4 /sys/net/pf_norm.c
parentaf19f0c17c96bcbae4896dc2defc8a53d74cddc4 (diff)
make sure we use same key for removal (AF_INET was missing), ok deraadt@, dhartmei@
reported buy wizz@mniam.net
Diffstat (limited to 'sys/net/pf_norm.c')
-rw-r--r--sys/net/pf_norm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/pf_norm.c b/sys/net/pf_norm.c
index e78f1793467..3cfd1887a6a 100644
--- a/sys/net/pf_norm.c
+++ b/sys/net/pf_norm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_norm.c,v 1.13 2001/10/07 21:34:27 provos Exp $ */
+/* $OpenBSD: pf_norm.c,v 1.14 2001/10/17 22:21:42 markus Exp $ */
/*
* Copyright 2001 Niels Provos <provos@citi.umich.edu>
@@ -231,7 +231,9 @@ pf_remove_fragment(struct pf_fragment *frag)
{
struct pf_tree_key key;
+ /* XXX keep in sync with pf_ip2key */
key.proto = frag->fr_p;
+ key.af = AF_INET;
key.addr[0].addr32[0] = frag->fr_src.s_addr;
key.addr[1].addr32[0] = frag->fr_dst.s_addr;
key.port[0] = frag->fr_id;