Commit 65049b17 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Oops, off by one.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1050 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 56abe23f
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment