From bdbb64fe3c2b4e4a880e96f5e64f1215e3e64ac7 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 2 Aug 2006 15:55:06 +0000 Subject: [PATCH] Remember to clear sp->vbc git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@605 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_pass.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.5