Commit 0e8f8654 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Oops, off by one.


git-svn-id: http://www.varnish-cache.org/svn/trunk@1050 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 93d9d564
......@@ -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