]> err.no Git - varnish/commitdiff
Merge r3353, r3354: resp.status was returning obj.status
authortfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 10 Nov 2008 10:12:00 +0000 (10:12 +0000)
committertfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 10 Nov 2008 10:12:00 +0000 (10:12 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3373 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_vrt.c

index dc08fb465c4f2701cfd78e9435d331c840b750ba..02559206d8694162b9f0fdcd98c3e3497ce7694e 100644 (file)
@@ -284,8 +284,8 @@ int
 VRT_r_resp_status(const struct sess *sp)
 {
        CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
-       CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC);
-       return (atoi(sp->obj->http->hd[HTTP_HDR_STATUS].b));
+       CHECK_OBJ_NOTNULL(sp->http, HTTP_MAGIC);
+       return (atoi(sp->http->hd[HTTP_HDR_STATUS].b));
 }
 
 /*--------------------------------------------------------------------*/