From: phk Date: Sun, 17 Sep 2006 18:31:31 +0000 (+0000) Subject: Oops, off by one. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db2e674181faf3a6adc99cf7ce8b26f028e430e8;p=varnish Oops, off by one. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1050 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_pool.c b/varnish-cache/bin/varnishd/cache_pool.c index 934bee12..421d7d8b 100644 --- a/varnish-cache/bin/varnishd/cache_pool.c +++ b/varnish-cache/bin/varnishd/cache_pool.c @@ -242,7 +242,7 @@ WRK_QueueSession(struct sess *sp) unsigned onq; onq = nq + 1; - if (onq > nwq) + if (onq >= nwq) onq = 0; sp->workreq.sess = sp; qp = wq[onq];