artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dec58f
)
Purging a queue requires it to be non-empty, not empty.
author
pelikan
<pelikan@openbsd.org>
Fri, 3 Jan 2014 19:58:54 +0000
(19:58 +0000)
committer
pelikan
<pelikan@openbsd.org>
Fri, 3 Jan 2014 19:58:54 +0000
(19:58 +0000)
ok millert
sys/net/hfsc.c
patch
|
blob
|
history
diff --git
a/sys/net/hfsc.c
b/sys/net/hfsc.c
index
7709310
..
dcb0a09
100644
(file)
--- 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) {