From: phk Date: Thu, 26 Jun 2008 21:42:05 +0000 (+0000) Subject: Oops, only enable $evilhack when we want to. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b3fca9734c8fa276453addb9c1e482c13e4c652;p=varnish Oops, only enable $evilhack when we want to. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2838 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_fetch.c b/varnish-cache/bin/varnishd/cache_fetch.c index 05fdee25..78817001 100644 --- a/varnish-cache/bin/varnishd/cache_fetch.c +++ b/varnish-cache/bin/varnishd/cache_fetch.c @@ -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);