]> err.no Git - varnish/commitdiff
Remember to clear sp->vbc
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 2 Aug 2006 15:55:06 +0000 (15:55 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 2 Aug 2006 15:55:06 +0000 (15:55 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@605 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_pass.c

index d0656ae3adb8b44be7802e894926a3575889d2d5..ac97958cf31976dd562fafdf455793861b16f176 100644 (file)
@@ -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;
 }