From 31fb7189fda0d938a57727a585b56108e81f6bfc Mon Sep 17 00:00:00 2001 From: Marco Pfatschbacher Date: Wed, 20 Jun 2007 14:14:18 +0000 Subject: Allow "log" for nat rules without "pass". OK henning@, ``passt scho'' markus@ --- 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 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, -- cgit v1.2.3