summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorCamiel Dobbelaar <camield@cvs.openbsd.org>2003-01-17 12:53:53 +0000
committerCamiel Dobbelaar <camield@cvs.openbsd.org>2003-01-17 12:53:53 +0000
commit2e83eea552784c301f52b1667aa4143684e5054d (patch)
treecabef639c489778e8ff9b0dfa4c785b8ba9c824d /sbin
parent958feb8fa03130c5ea6ead05031923995c1b8e7b (diff)
bandwith -> bandwidth
YYERROR on failed parseicmpspec() ok dhartmei mcbride henning
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/parse.y7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index a852aaba9cc..9e22cb42d5d 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.290 2003/01/15 15:14:42 mpech Exp $ */
+/* $OpenBSD: parse.y,v 1.291 2003/01/17 12:53:52 camield Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -883,7 +883,7 @@ queue_opts_l : queue_opts_l queue_opt
queue_opt : bandwidth {
if (queue_opts.marker & QOM_BWSPEC) {
- yyerror("bandwith cannot be respecified");
+ yyerror("bandwidth cannot be respecified");
YYERROR;
}
queue_opts.marker |= QOM_BWSPEC;
@@ -1320,7 +1320,8 @@ blockspec : /* empty */ {
$$.b2 = PFRULE_RETURNICMP;
if (!($$.w = parseicmpspec($3, AF_INET)))
YYERROR;
- if (!($$.w2 = parseicmpspec($5, AF_INET6)));
+ if (!($$.w2 = parseicmpspec($5, AF_INET6)))
+ YYERROR;
}
| RETURN {
$$.b2 = PFRULE_RETURN;