From 84eedffe0f42a62d07fe6efd75f6ac3e46e6960d Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 20 Nov 2007 17:20:47 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_fetch.c | 1 + 1 file changed, 1 insertion(+) 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__); } -- 2.39.5