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

Check that object has a ban before we unbusy it.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4055 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 4e2dce84
......@@ -573,6 +573,7 @@ cnt_fetch(struct sess *sp)
if (sp->obj->objhead != NULL) {
VRY_Create(sp);
EXP_Insert(sp->obj);
AN(sp->obj->ban);
HSH_Unbusy(sp);
}
sp->acct_req.fetch++;
......
......@@ -593,6 +593,7 @@ HSH_Unbusy(const struct sess *sp)
CHECK_OBJ(oh, OBJHEAD_MAGIC);
AN(ObjIsBusy(o));
AN(o->ban);
assert(o->objcore->obj == o);
assert(o->refcnt > 0);
assert(oh->refcnt > 0);
......
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