summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/parse.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 9b186b68e4f..3d871e0d052 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.57 2002/03/27 18:16:22 mickey Exp $ */
+/* $OpenBSD: parse.y,v 1.58 2002/04/17 19:06:18 dhartmei Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -1713,6 +1713,7 @@ parse_rules(FILE *input, struct pfctl *xpf)
natmode = 0;
fin = input;
pf = xpf;
+ lineno = 1;
errors = 0;
yyparse();
return (errors ? -1 : 0);
@@ -1724,6 +1725,7 @@ parse_nat(FILE *input, struct pfctl *xpf)
natmode = 1;
fin = input;
pf = xpf;
+ lineno = 1;
errors = 0;
yyparse();
return (errors ? -1 : 0);