summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2004-11-19 18:20:11 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2004-11-19 18:20:11 +0000
commit7ddcd41ac243a45f844e65247896b6f86dd2c484 (patch)
treeb3c46fe2397845ca6a29713ea691a8e679da857c /sys
parent70810ccc2cf07c7674fb1fcfb2a85d2292ec6ed6 (diff)
remove superfluous m_tag_copy/m_tag_prepend, already covered by m_copym2()
reported by Joerg Sonnenberger, ok henning@
Diffstat (limited to 'sys')
-rw-r--r--sys/net/pf.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index e2f484664e2..e9117147786 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.462 2004/11/12 19:44:44 dhartmei Exp $ */
+/* $OpenBSD: pf.c,v 1.463 2004/11/19 18:20:10 dhartmei Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -5000,9 +5000,6 @@ pf_route(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp,
if (r->rt == PF_DUPTO) {
if ((m0 = m_copym2(*m, 0, M_COPYALL, M_NOWAIT)) == NULL)
return;
- if ((mtag = m_tag_copy(mtag)) == NULL)
- goto bad;
- m_tag_prepend(m0, mtag);
} else {
if ((r->rt == PF_REPLYTO) == (r->direction == dir))
return;
@@ -5197,9 +5194,6 @@ pf_route6(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp,
if (r->rt == PF_DUPTO) {
if ((m0 = m_copym2(*m, 0, M_COPYALL, M_NOWAIT)) == NULL)
return;
- if ((mtag = m_tag_copy(mtag)) == NULL)
- goto bad;
- m_tag_prepend(m0, mtag);
} else {
if ((r->rt == PF_REPLYTO) == (r->direction == dir))
return;