r3373 - branches/2.0/varnish-cache/bin/varnishd

tfheen at projects.linpro.no tfheen at projects.linpro.no
Mon Nov 10 11:12:00 CET 2008


Author: tfheen
Date: 2008-11-10 11:12:00 +0100 (Mon, 10 Nov 2008)
New Revision: 3373

Modified:
   branches/2.0/varnish-cache/bin/varnishd/cache_vrt.c
Log:
Merge r3353, r3354: resp.status was returning obj.status 



Modified: branches/2.0/varnish-cache/bin/varnishd/cache_vrt.c
===================================================================
--- branches/2.0/varnish-cache/bin/varnishd/cache_vrt.c	2008-11-10 10:10:49 UTC (rev 3372)
+++ branches/2.0/varnish-cache/bin/varnishd/cache_vrt.c	2008-11-10 10:12:00 UTC (rev 3373)
@@ -284,8 +284,8 @@
 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));
 }
 
 /*--------------------------------------------------------------------*/




More information about the varnish-commit mailing list