]> err.no Git - varnish/commitdiff
Oops, only enable $evilhack when we want to.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 26 Jun 2008 21:42:05 +0000 (21:42 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 26 Jun 2008 21:42:05 +0000 (21:42 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2838 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_fetch.c

index 05fdee257fbafe68ac0089d05866999f75979015..7881700166c9ed8f6b7ad4eb0e8e1c2a65e9513a 100644 (file)
@@ -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);