Commit 3774fc2d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't overrun rxbuf



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4044 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 3ad130c1
......@@ -321,7 +321,7 @@ http_rxchar_eof(struct http *hp, int n)
vtc_log(hp->vl, 0, "HTTP rx failed (%s)",
strerror(errno));
assert(i > 0);
assert(hp->prxbuf < hp->nrxbuf);
assert(hp->prxbuf + n < hp->nrxbuf);
i = read(hp->fd, hp->rxbuf + hp->prxbuf, n);
if (i == 0)
return (i);
......
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