From: phk Date: Tue, 20 Nov 2007 11:23:37 +0000 (+0000) Subject: We should never have an object when we hit the error state. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b978201c67608884bb23f0dec94b01e20dc6797;p=varnish We should never have an object when we hit the error state. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2265 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_center.c b/varnish-cache/bin/varnishd/cache_center.c index eda2efd7..efc78259 100644 --- a/varnish-cache/bin/varnishd/cache_center.c +++ b/varnish-cache/bin/varnishd/cache_center.c @@ -275,6 +275,7 @@ static int cnt_error(struct sess *sp) { + AZ(sp->obj); RES_Error(sp, sp->err_code, sp->err_reason); sp->err_code = 0; sp->err_reason = NULL;