]> err.no Git - varnish/commitdiff
When vcl_miss() take error action, remember to discard backend request.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 7 Aug 2007 06:55:52 +0000 (06:55 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 7 Aug 2007 06:55:52 +0000 (06:55 +0000)
Ticket: 139

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1807 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_center.c

index 91cc1b09bc278f0031f872bd750df7813e63bfdc..e7cc5341c656f2b763f7bd620dc015f4328767cf 100644 (file)
@@ -567,6 +567,8 @@ cnt_miss(struct sess *sp)
                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);
        }