Commit 99619278 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

r2208 was correct but incomplete. It is possible for a session to reach

cnt_done() without a VCL reference, if we never got a request on that
connection.  However, a session that reaches cnt_again() will never have
a VCL reference, so the assertion there is incorrect.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2214 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent d8a3c761
......@@ -88,7 +88,7 @@ cnt_again(struct sess *sp)
int i;
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
CHECK_OBJ_NOTNULL(sp->vcl, VCL_CONF_MAGIC);
AZ(sp->vcl);
AZ(sp->obj);
assert(sp->xid == 0);
......@@ -191,7 +191,7 @@ cnt_done(struct sess *sp)
int i;
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
CHECK_OBJ_NOTNULL(sp->vcl, VCL_CONF_MAGIC);
CHECK_OBJ_ORNULL(sp->vcl, VCL_CONF_MAGIC);
AZ(sp->obj);
AZ(sp->bereq);
......
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