summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbin/pfctl/parse.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 6697c7ff989..ca323aeda81 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.101 2002/06/16 23:22:18 aaron Exp $ */
+/* $OpenBSD: parse.y,v 1.102 2002/06/18 20:07:58 frantzen Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -1104,6 +1104,10 @@ state_opt_item : MAXIMUM NUMBER {
yyerror("illegal timeout name %s", $1);
YYERROR;
}
+ if (strchr(pf_timeouts[i].name, '.') == NULL) {
+ yyerror("illegal state timeout %s", $1);
+ YYERROR;
+ }
if ($2 < 0) {
yyerror("illegal timeout value %d", $2);
YYERROR;