From: phk Date: Tue, 22 Aug 2006 19:14:01 +0000 (+0000) Subject: Implement "error" in vcl_hit() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2aeb16b884f1abbc29a9619ff3527d4ad0f4bd9b;p=varnish Implement "error" in vcl_hit() git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@897 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_center.c b/varnish-cache/bin/varnishd/cache_center.c index b4468a48..984e3e50 100644 --- a/varnish-cache/bin/varnishd/cache_center.c +++ b/varnish-cache/bin/varnishd/cache_center.c @@ -323,8 +323,12 @@ cnt_hit(struct sess *sp) return (0); } - if (sp->handling == VCL_RET_ERROR) - INCOMPL(); + if (sp->handling == VCL_RET_ERROR) { + HSH_Deref(sp->obj); + sp->obj = NULL; + sp->step = STP_ERROR; + return (0); + } if (sp->handling == VCL_RET_LOOKUP) INCOMPL();