diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2008-08-26 12:18:02 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2008-08-26 12:18:02 +0000 |
commit | bdb01d3bb4cd0693574f43be3c616da206a0214b (patch) | |
tree | cc3152de64cc9e2d4a4f7b84d0e0ec00e37aa138 /sys | |
parent | eafc35b6c7ee13c5bfa9f4da49532db44ac40ba5 (diff) |
call pf_pkt_addr_changed instead of manually clearing the pf state key ptr
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ipsec_input.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet/ipsec_input.c b/sys/netinet/ipsec_input.c index 93ab99fa121..d91d5e99ac5 100644 --- a/sys/netinet/ipsec_input.c +++ b/sys/netinet/ipsec_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsec_input.c,v 1.88 2008/07/24 10:55:44 henning Exp $ */ +/* $OpenBSD: ipsec_input.c,v 1.89 2008/08/26 12:18:01 henning Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -563,9 +563,7 @@ ipsec_common_input_cb(struct mbuf *m, struct tdb *tdbp, int skip, int protoff, /* Add pf tag if requested. */ if (pf_tag_packet(m, tdbp->tdb_tag, -1)) DPRINTF(("failed to tag ipsec packet\n")); - - /* clear state key ptr to prevent incorrect linking */ - m->m_pkthdr.pf.statekey = NULL; + pf_pkt_addr_changed(m); #endif if (tdbp->tdb_flags & TDBF_TUNNELING) |