summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2009-04-25 19:29:55 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2009-04-25 19:29:55 +0000
commit7cd46f20cc6a6ba8a5bf692f17ccd7d9571b6bbb (patch)
tree14e8b12ffa4a11eeae191d288c1cf3784d1a6753 /sbin
parent78f5d7ad35bcd3fcc21b5ec33fdbf710a92ff1b4 (diff)
scrub_opts must not be empty, scrub on its own does nothing.
noticed due to a question from otto@, ok regress/sbin/pfctl/ ;)
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/parse.y6
1 files changed, 1 insertions, 5 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 3c3b9a67c85..ec0591bb704 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.556 2009/04/06 12:05:55 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.557 2009/04/25 19:29:54 henning Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -1033,10 +1033,6 @@ scrub_opts : {
}
scrub_opts_l
{ $$ = scrub_opts; }
- | /* empty */ {
- bzero(&scrub_opts, sizeof scrub_opts);
- $$ = scrub_opts;
- }
;
scrub_opts_l : scrub_opts_l comma scrub_opt