summaryrefslogtreecommitdiff
path: root/sbin/pfctl/parse.y
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-08-20 13:02:53 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-08-20 13:02:53 +0000
commitdc9250216ce68dda05f062750b03555e2af5bd00 (patch)
treeebab0c638d413ee12f6b3001c5371041447e2da9 /sbin/pfctl/parse.y
parent2c3b98082c6bc60bec82591f811d95304c00a564 (diff)
err out nicer on errors in queue def
Diffstat (limited to 'sbin/pfctl/parse.y')
-rw-r--r--sbin/pfctl/parse.y6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index d57b2be1478..2a82affc028 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.406 2003/08/18 11:08:10 dhartmei Exp $ */
+/* $OpenBSD: parse.y,v 1.407 2003/08/20 13:02:52 henning Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -1002,8 +1002,10 @@ queuespec : QUEUE STRING interface queue_opts qassign {
a.qlimit = $4.qlimit;
a.scheduler = $4.scheduler.qtype;
if (expand_queue(&a, $3, $5, $4.queue_bwspec,
- &$4.scheduler))
+ &$4.scheduler)) {
+ yyerror("errors in queue definition");
YYERROR;
+ }
}
;