]> err.no Git - varnish/commitdiff
thanks mithrandir -- check the right magic
authorsky <sky@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 28 Oct 2008 12:33:19 +0000 (12:33 +0000)
committersky <sky@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 28 Oct 2008 12:33:19 +0000 (12:33 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3354 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_vrt.c

index e7f69b8df553da39056ecaaffbf4639382ba04ff..1fb38474bdb29dd03e3f9fe6602977f7c4ff71ef 100644 (file)
@@ -286,7 +286,7 @@ int
 VRT_r_resp_status(const struct sess *sp)
 {
        CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
-       CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC);
+       CHECK_OBJ_NOTNULL(sp->http, HTTP_MAGIC);
        return (atoi(sp->http->hd[HTTP_HDR_STATUS].b));
 }