]> err.no Git - varnish/commitdiff
resp.status was returning obj.status
authorsky <sky@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 28 Oct 2008 12:21:15 +0000 (12:21 +0000)
committersky <sky@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 28 Oct 2008 12:21:15 +0000 (12:21 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3353 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_vrt.c

index 2101b1f6bf5c2b4fa1a564cc8a7a340a76d38ad0..e7f69b8df553da39056ecaaffbf4639382ba04ff 100644 (file)
@@ -287,7 +287,7 @@ 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));
+       return (atoi(sp->http->hd[HTTP_HDR_STATUS].b));
 }
 
 /*--------------------------------------------------------------------*/