summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-06-26 05:03:37 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-06-26 05:03:37 +0000
commitb2dd3c5def719b7f67e91d714f5142f17035b386 (patch)
tree6543a09eed49ee12448a6c22c11fd050a989a6fb
parent9ba4feaa4d8132916f8bacd274327e1e63f45f1f (diff)
avoid useless m_copyback
-rw-r--r--sys/net/pf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index e3bd0766dde..06661383fcb 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.46 2001/06/26 05:02:11 itojun Exp $ */
+/* $OpenBSD: pf.c,v 1.47 2001/06/26 05:03:36 itojun Exp $ */
/*
* Copyright (c) 2001, Daniel Hartmeier
@@ -1861,10 +1861,8 @@ pf_test_state_icmp(int direction, struct ifnet *ifp, struct mbuf **m,
* copy back packet headers if we performed NAT
* operations
*/
- if (rewrite) {
+ if (rewrite)
m_copyback((*m), ipoff, sizeof(*h), (caddr_t)h);
- m_copyback((*m), off, sizeof(*ih), (caddr_t)ih);
- }
return (s);
}