summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2007-06-09 18:30:48 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2007-06-09 18:30:48 +0000
commite0b09abded89cd8c026dcbcc0a68a05e07cb7265 (patch)
tree183a26ec4ebb4092ba63b52ea4ac6fec9d4b642e /sys
parent367d13cdc082526ce7240bd083255c79190ad4dd (diff)
fix wrong argument passing to m_copyback for the log case
(&ptr instead of ptr). should fix pflog breakage seen by bob
Diffstat (limited to 'sys')
-rw-r--r--sys/net/pf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index 3d435310f46..723bf349e4f 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.542 2007/06/09 16:32:00 henning Exp $ */
+/* $OpenBSD: pf.c,v 1.543 2007/06/09 18:30:47 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -3081,7 +3081,7 @@ pf_test_rule(struct pf_rule **rm, struct pf_state **sm, int direction,
if (r->log || (nr != NULL && nr->natpass && nr->log)) {
if (rewrite)
- m_copyback(m, off, hdrlen, &pd->hdr.any);
+ m_copyback(m, off, hdrlen, pd->hdr.any);
PFLOG_PACKET(kif, h, m, af, direction, reason, r->log ? r : nr,
a, ruleset, pd);
}