Commit 7845f516 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Assert that we have an object, in case people use inline-C to access

obj.http.*



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4762 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 182f9daa
......@@ -115,6 +115,7 @@ vrt_selecthttp(const struct sess *sp, enum gethdr_e where)
hp = sp->wrk->resp;
break;
case HDR_OBJ:
CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC);
hp = sp->obj->http;
break;
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment