From e0b09abded89cd8c026dcbcc0a68a05e07cb7265 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Sat, 9 Jun 2007 18:30:48 +0000 Subject: fix wrong argument passing to m_copyback for the log case (&ptr instead of ptr). should fix pflog breakage seen by bob --- sys/net/pf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net/pf.c') 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); } -- cgit v1.2.3