summaryrefslogtreecommitdiff
path: root/sys/altq/altq_cbq.c
diff options
context:
space:
mode:
authorKenjiro Cho <kjc@cvs.openbsd.org>2002-10-05 02:57:59 +0000
committerKenjiro Cho <kjc@cvs.openbsd.org>2002-10-05 02:57:59 +0000
commitfa3f13e3f0f326e8a4f1082db253a2d62ef1770b (patch)
treebb034883ad833f7793cf08b0a95aa3e31b948632 /sys/altq/altq_cbq.c
parentdccd9f0820411e54d91316d8d51f7b9ab014ea7d (diff)
fix a embarrassing list-handling bug in cbq.
this bug is triggered only when 3 or more cbq instances are created at a time.
Diffstat (limited to 'sys/altq/altq_cbq.c')
-rw-r--r--sys/altq/altq_cbq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/altq/altq_cbq.c b/sys/altq/altq_cbq.c
index 3dd5717740f..6800608635d 100644
--- a/sys/altq/altq_cbq.c
+++ b/sys/altq/altq_cbq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: altq_cbq.c,v 1.4 2002/03/14 03:15:50 millert Exp $ */
+/* $OpenBSD: altq_cbq.c,v 1.5 2002/10/05 02:57:58 kjc Exp $ */
/* $KAME: altq_cbq.c,v 1.9 2000/12/14 08:12:45 thorpej Exp $ */
/*
@@ -666,7 +666,7 @@ cbq_ifdetach(ifacep)
else {
cbq_state_t *cp;
- for (cp = cbq_list; cp != NULL; cp = cbqp->cbq_next)
+ for (cp = cbq_list; cp != NULL; cp = cp->cbq_next)
if (cp->cbq_next == cbqp) {
cp->cbq_next = cbqp->cbq_next;
break;