summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2002-06-12 18:35:08 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2002-06-12 18:35:08 +0000
commitc5897e017331663d70afa4961df158ff04ef2d10 (patch)
tree9489242e8beb26404204e021b504127daffbf199
parenta9070eaa54b1d9a585afff30b3fcb3e98400e8d9 (diff)
Fix uninitialized access. Spotted by danh@ This is a good reason to
develop with "ln -s 'J' /etc/malloc.conf" enabled. ok henning@
-rw-r--r--sbin/pfctl/parse.y7
1 files changed, 5 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 06bdbfabb6b..6edaf8322cc 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.97 2002/06/11 18:03:25 frantzen Exp $ */
+/* $OpenBSD: parse.y,v 1.98 2002/06/12 18:35:07 kjell Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -1055,7 +1055,10 @@ icmp6type : STRING {
}
;
-keep : /* empty */ { $$.action = 0; }
+keep : /* empty */ {
+ $$.action = 0;
+ $$.options = NULL;
+ }
| KEEP STATE state_opt_spec {
$$.action = PF_STATE_NORMAL;
$$.options = $3;