summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2001-09-20 18:31:45 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2001-09-20 18:31:45 +0000
commit15e57c6b97a7004efd3460533f8566c3ea8be7f6 (patch)
treed35e2d7af4e32d397dcfdd667debd58c9914436c
parent45e5839037203ae681071a1f01624f7176b0c5ec (diff)
Fix uninitialized structure fields. Problem reported by Cedric Berger.
-rw-r--r--sbin/pfctl/parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 84b50b08222..192938f1c86 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.35 2001/09/15 23:23:40 wilfried Exp $ */
+/* $OpenBSD: parse.y,v 1.36 2001/09/20 18:31:44 dhartmei Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -226,9 +226,9 @@ pfrule : action dir log quick interface af proto fromto flags icmpspec keep nod
}
;
-action : PASS { $$.b1 = PF_PASS; }
+action : PASS { $$.b1 = PF_PASS; $$.b2 = $$.w = 0; }
| BLOCK blockspec { $$ = $2; $$.b1 = PF_DROP; }
- | SCRUB { $$.b1 = PF_SCRUB; }
+ | SCRUB { $$.b1 = PF_SCRUB; $$.b2 = $$.w = 0; }
;
blockspec : /* empty */ { $$.b2 = 0; $$.w = 0; }