r605 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Wed Aug 2 17:55:06 CEST 2006


Author: phk
Date: 2006-08-02 17:55:06 +0200 (Wed, 02 Aug 2006)
New Revision: 605

Modified:
   trunk/varnish-cache/bin/varnishd/cache_pass.c
Log:
Remember to clear sp->vbc


Modified: trunk/varnish-cache/bin/varnishd/cache_pass.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_pass.c	2006-08-02 13:28:14 UTC (rev 604)
+++ trunk/varnish-cache/bin/varnishd/cache_pass.c	2006-08-02 15:55:06 UTC (rev 605)
@@ -147,6 +147,7 @@
 
 	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 @@
 	assert(i == 0);
 	http_DissectResponse(vc->http, vc->fd);
 
+	assert(sp->vbc == NULL);
 	sp->vbc = vc;
 }




More information about the varnish-commit mailing list