From 7cd46f20cc6a6ba8a5bf692f17ccd7d9571b6bbb Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Sat, 25 Apr 2009 19:29:55 +0000 Subject: scrub_opts must not be empty, scrub on its own does nothing. noticed due to a question from otto@, ok regress/sbin/pfctl/ ;) --- sbin/pfctl/parse.y | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sbin') 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 -- cgit v1.2.3