r1807 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Tue Aug 7 08:55:52 CEST 2007


Author: phk
Date: 2007-08-07 08:55:52 +0200 (Tue, 07 Aug 2007)
New Revision: 1807

Modified:
   trunk/varnish-cache/bin/varnishd/cache_center.c
Log:
When vcl_miss() take error action, remember to discard backend request.

Ticket: 139


Modified: trunk/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_center.c	2007-08-06 09:28:44 UTC (rev 1806)
+++ trunk/varnish-cache/bin/varnishd/cache_center.c	2007-08-07 06:55:52 UTC (rev 1807)
@@ -567,6 +567,8 @@
 		HSH_Unbusy(sp->obj);
 		HSH_Deref(sp->obj);
 		sp->obj = NULL;
+		vbe_free_bereq(sp->bereq);
+		sp->bereq = NULL;
 		sp->step = STP_ERROR;
 		return (0);
 	}




More information about the varnish-commit mailing list