Commit 94849fed authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Oops, only enable $evilhack when we want to.



git-svn-id: http://www.varnish-cache.org/svn/trunk@2838 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent c8ce51e1
......@@ -232,7 +232,7 @@ fetch_eof(struct sess *sp, struct http_conn *htc)
VTAILQ_INSERT_TAIL(&sp->obj->store, st, list);
p = st->ptr + st->len;
v = st->space - st->len;
if (v > fetchfrag)
if (fetchfrag > 0 && v > fetchfrag)
v = fetchfrag;
}
AN(p);
......
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