r4762 - trunk/varnish-cache/bin/varnishd

phk at varnish-cache.org phk at varnish-cache.org
Wed May 5 09:48:10 CEST 2010


Author: phk
Date: 2010-05-05 09:48:10 +0200 (Wed, 05 May 2010)
New Revision: 4762

Modified:
   trunk/varnish-cache/bin/varnishd/cache_vrt.c
Log:
Assert that we have an object, in case people use inline-C to access
obj.http.*



Modified: trunk/varnish-cache/bin/varnishd/cache_vrt.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_vrt.c	2010-05-05 07:40:13 UTC (rev 4761)
+++ trunk/varnish-cache/bin/varnishd/cache_vrt.c	2010-05-05 07:48:10 UTC (rev 4762)
@@ -115,6 +115,7 @@
 		hp = sp->wrk->resp;
 		break;
 	case HDR_OBJ:
+		CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC);
 		hp = sp->obj->http;
 		break;
 	default:




More information about the varnish-commit mailing list