]> err.no Git - varnish/commitdiff
Use the right workspace for beresp.status
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 28 Feb 2009 21:21:14 +0000 (21:21 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 28 Feb 2009 21:21:14 +0000 (21:21 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3844 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_vrt.c

index 7d90fdbd4f971f0ecfea25f5842c0512e6296b32..80b0566ad5bdf87b7675c040ddcc80fc4cdf8ff9 100644 (file)
@@ -371,7 +371,7 @@ VRT_l_beresp_status(const struct sess *sp, int num)
        char *p;
 
        assert(num >= 100 && num <= 999);
-       p = WS_Alloc(sp->obj->http->ws, 4);
+       p = WS_Alloc(sp->bereq->beresp->ws, 4);
        if (p == NULL)
                WSP(sp, SLT_LostHeader, "%s", "obj.status");
        else