Commit 3dfe4e11 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix an assert so it actually has a chance of firing: (an unsigned is

always >= 0)


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@789 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 31c4e1b4
......@@ -118,8 +118,8 @@ pass_chunked(struct sess *sp, int fd, struct http *hp)
sp->wrk->acct.bodybytes += WRK_Write(sp->wrk, p, j);
WRK_Flush(sp->wrk);
p += j;
assert(u >= j);
u -= j;
assert(u >= 0);
if (u == 0)
break;
p = bp = buf;
......
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