Commit ff87b191 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

More miniobj checks


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@592 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 000fa120
......@@ -293,6 +293,9 @@ FetchHeaders(struct sess *sp)
i = WRK_Flush(w);
assert(i == 0);
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
CHECK_OBJ_NOTNULL(sp->wrk, WORKER_MAGIC);
CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC);
/*
* XXX: It might be cheaper to avoid the event_engine and simply
* XXX: read(2) the header
......@@ -300,6 +303,9 @@ FetchHeaders(struct sess *sp)
http_RecvHead(vc->http, vc->fd, w->eb, NULL, NULL);
(void)event_base_loop(w->eb, 0);
assert(http_DissectResponse(vc->http, vc->fd) == 0);
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
CHECK_OBJ_NOTNULL(sp->wrk, WORKER_MAGIC);
CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC);
sp->vbc = vc;
sp->obj->entered = time(NULL);
......
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