summaryrefslogtreecommitdiff
path: root/sys/net/hfsc.c
diff options
context:
space:
mode:
authorpelikan <pelikan@cvs.openbsd.org>2014-01-03 19:58:55 +0000
committerpelikan <pelikan@cvs.openbsd.org>2014-01-03 19:58:55 +0000
commit4ffc8fd918ebe7fb9f91cf3f0e78a943ebfcf583 (patch)
treea31501569652de66ac7a22f5d0f0baf59213d708 /sys/net/hfsc.c
parent1a2ebb2de187d6cb3d2aea21424099913bc300fd (diff)
Purging a queue requires it to be non-empty, not empty.
ok millert
Diffstat (limited to 'sys/net/hfsc.c')
-rw-r--r--sys/net/hfsc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/hfsc.c b/sys/net/hfsc.c
index 7709310da35..dcb0a097782 100644
--- a/sys/net/hfsc.c
+++ b/sys/net/hfsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hfsc.c,v 1.6 2014/01/03 12:48:58 pelikan Exp $ */
+/* $OpenBSD: hfsc.c,v 1.7 2014/01/03 19:58:54 pelikan Exp $ */
/*
* Copyright (c) 2012-2013 Henning Brauer <henning@openbsd.org>
@@ -677,7 +677,7 @@ hfsc_purgeq(struct hfsc_class *cl)
{
struct mbuf *m;
- if (cl->cl_q->qlen > 0)
+ if (cl->cl_q->qlen == 0)
return;
while ((m = hfsc_getq(cl)) != NULL) {