diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2002-06-15 19:19:10 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2002-06-15 19:19:10 +0000 |
commit | 7f9e63085230057c6ade36120a80a1a0858a1398 (patch) | |
tree | 92649d1f31d152cafc67de7a04b88b7190c839f8 /sbin | |
parent | 959ea0b9955c2789978d97f02c3cb6ca4a3d491b (diff) |
Reset rulestate in parse_rules(), so consecutive calls (like from authpf)
will not fail. Reported by Chris Kuethe.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pfctl/parse.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index be8f0cdef48..41112be7f14 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.99 2002/06/13 04:26:00 kjell Exp $ */ +/* $OpenBSD: parse.y,v 1.100 2002/06/15 19:19:09 dhartmei Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -2418,6 +2418,7 @@ parse_rules(FILE *input, struct pfctl *xpf) pf = xpf; lineno = 1; errors = 0; + rulestate = PFCTL_STATE_NONE; yyparse(); return (errors ? -1 : 0); } |