From: phk Date: Tue, 20 Nov 2007 17:20:47 +0000 (+0000) Subject: Reset the objects length to zero after we zapped all its component X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84eedffe0f42a62d07fe6efd75f6ac3e46e6960d;p=varnish Reset the objects length to zero after we zapped all its component 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 --- diff --git a/varnish-cache/bin/varnishd/cache_fetch.c b/varnish-cache/bin/varnishd/cache_fetch.c index 0f0b6f0a..62de6643 100644 --- a/varnish-cache/bin/varnishd/cache_fetch.c +++ b/varnish-cache/bin/varnishd/cache_fetch.c @@ -395,6 +395,7 @@ Fetch(struct sess *sp) } VBE_UpdateHealth(sp, vc, -4); VBE_ClosedFd(sp->wrk, vc); + sp->obj->len = 0; return (__LINE__); }