]> err.no Git - varnish/commitdiff
Oops, off by one.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 17 Sep 2006 18:31:31 +0000 (18:31 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 17 Sep 2006 18:31:31 +0000 (18:31 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1050 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_pool.c

index 934bee12212ee570b069e2384a6686449948ec6e..421d7d8bb0410d5a43ee62696b23caccff1a1750 100644 (file)
@@ -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];