diff options
author | Marco Pfatschbacher <mpf@cvs.openbsd.org> | 2007-06-20 14:14:18 +0000 |
---|---|---|
committer | Marco Pfatschbacher <mpf@cvs.openbsd.org> | 2007-06-20 14:14:18 +0000 |
commit | 31fb7189fda0d938a57727a585b56108e81f6bfc (patch) | |
tree | 6093e6648af3375ddfeb0689f3052e27d91152c1 /sys/net/pf.c | |
parent | cd8f1a801239fda9ed5a8ffed1be5258452f5c30 (diff) |
Allow "log" for nat rules without "pass".
OK henning@, ``passt scho'' markus@
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r-- | sys/net/pf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index b40c1ae11ae..161006e027b 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.544 2007/06/15 08:18:59 henning Exp $ */ +/* $OpenBSD: pf.c,v 1.545 2007/06/20 14:14:17 mpf Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -3082,7 +3082,7 @@ pf_test_rule(struct pf_rule **rm, struct pf_state **sm, int direction, REASON_SET(&reason, PFRES_MATCH); - if (r->log || (nr != NULL && nr->natpass && nr->log)) { + if (r->log || (nr != NULL && nr->log)) { if (rewrite) m_copyback(m, off, hdrlen, pd->hdr.any); PFLOG_PACKET(kif, h, m, af, direction, reason, r->log ? r : nr, |