From 7f57faf25db0dc50088a8b3ebb0ca3b08b0a9332 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Sat, 8 Mar 2003 15:17:35 +0000 Subject: 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@ --- sbin/pfctl/parse.y | 4 ++-- 1 file 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) -- cgit v1.2.3