From: phk Date: Wed, 2 Aug 2006 15:55:06 +0000 (+0000) Subject: Remember to clear sp->vbc X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdbb64fe3c2b4e4a880e96f5e64f1215e3e64ac7;p=varnish Remember to clear sp->vbc git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@605 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_pass.c b/varnish-cache/bin/varnishd/cache_pass.c index d0656ae3..ac97958c 100644 --- a/varnish-cache/bin/varnishd/cache_pass.c +++ b/varnish-cache/bin/varnishd/cache_pass.c @@ -147,6 +147,7 @@ PassBody(struct sess *sp) vc = sp->vbc; assert(vc != NULL); + sp->vbc = NULL; http_ClrHeader(sp->http); http_CopyResp(sp->fd, sp->http, vc->http); @@ -209,5 +210,6 @@ PassSession(struct sess *sp) assert(i == 0); http_DissectResponse(vc->http, vc->fd); + assert(sp->vbc == NULL); sp->vbc = vc; }