From 2b3fca9734c8fa276453addb9c1e482c13e4c652 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 26 Jun 2008 21:42:05 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5