]> err.no Git - varnish/commitdiff
Reset the objects length to zero after we zapped all its component
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 20 Nov 2007 17:20:47 +0000 (17:20 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 20 Nov 2007 17:20:47 +0000 (17:20 +0000)
parts, otherwise we will get trouble (#167 ?) later.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2275 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_fetch.c

index 0f0b6f0abc5f252228d738c7bd29dabd083b6734..62de6643f8f1ee01690140b1885e6128f3e71bbe 100644 (file)
@@ -395,6 +395,7 @@ Fetch(struct sess *sp)
                }
                VBE_UpdateHealth(sp, vc, -4);
                VBE_ClosedFd(sp->wrk, vc);
+               sp->obj->len = 0;
                return (__LINE__);
        }