summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2008-08-07 18:29:33 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2008-08-07 18:29:33 +0000
commit5359963bf6efdcdd58d576c01df2633c7de92de9 (patch)
treeace0e50f15bbc1315cafa7ca2372957cb4d12a67
parent419d579c16c4a63b3e701da55b434b3d09af28b5 (diff)
correctly copy the log interface spec when expanding an antispoof rule that
covers loopback addresses. ok ryan problem report from Harald Dunkel <harald.dunkel@aixigo.de>
-rw-r--r--sbin/pfctl/parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 55c3a755373..c9ccec6f2c3 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.549 2008/07/03 16:09:34 deraadt Exp $ */
+/* $OpenBSD: parse.y,v 1.550 2008/08/07 18:29:32 henning Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -1245,6 +1245,7 @@ antispoof : ANTISPOOF logquick antispoof_ifspc af antispoof_opts {
r.action = PF_DROP;
r.direction = PF_IN;
r.log = $2.log;
+ r.logif = $2.logif;
r.quick = $2.quick;
r.af = $4;
if (rule_label(&r, $5.label))