From 2aeb16b884f1abbc29a9619ff3527d4ad0f4bd9b Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 22 Aug 2006 19:14:01 +0000 Subject: [PATCH] Implement "error" in vcl_hit() git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@897 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_center.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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(); -- 2.39.5