summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-03-08 15:17:35 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-03-08 15:17:35 +0000
commit7f57faf25db0dc50088a8b3ebb0ca3b08b0a9332 (patch)
tree8a5933678337a3133af4bb01cc8e86f1e2ad9a7a
parent4f655e4f6914335f297f6d8e09ea6a6e48644a21 (diff)
fix the obvious:
since we do not modify the struct pf_altq *a any more but our private copy, we can of course not inherit teh scheduler type from it, since it did not inherit the scheduler type from the parent. so just inherit the scheduler type from the parent directly... ok dhartmei@ cedric@
-rw-r--r--sbin/pfctl/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 736adb5a542..c4ae66c5491 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.337 2003/03/08 14:52:17 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.338 2003/03/08 15:17:34 henning Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -3191,7 +3191,7 @@ expand_queue(struct pf_altq *a, struct node_queue *nqueues,
if (strlcpy(n->ifname, tqueue->ifname,
sizeof(n->ifname)) >= sizeof(n->ifname))
errx(1, "expand_queue: strlcpy");
- n->scheduler = a->scheduler;
+ n->scheduler = tqueue->scheduler;
n->next = NULL;
n->tail = n;
if (queues == NULL)