From: pelikan Date: Fri, 3 Jan 2014 19:58:54 +0000 (+0000) Subject: Purging a queue requires it to be non-empty, not empty. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=686ff949ad4b9f966c78f8c9dfe5e96f18a6cb13;p=openbsd Purging a queue requires it to be non-empty, not empty. ok millert --- 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 @@ -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) {