git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3774
d4fa192b-c00b-0410-8231-
f00ffab90ce4
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
o = sp->obj;
CHECK_OBJ_NOTNULL(o, OBJECT_MAGIC);
- AN(ObjIsBusy(o));
+ if (o->objcore != NULL) /* Pass has no objcore */
+ AN(ObjIsBusy(o));
assert(o->refcnt > 0);
o->ttl = 0;
o->cacheable = 0;
- HSH_Unbusy(sp);
+ if (o->objcore != NULL) /* Pass has no objcore */
+ HSH_Unbusy(sp);
HSH_Deref(&sp->obj);
}
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC);
- AN(ObjIsBusy(sp->obj));
+ if (sp->obj->objcore != NULL) /* Pass has no objcore */
+ AN(ObjIsBusy(sp->obj));
if (sp->cur_method != VCL_MET_FETCH) {
/* XXX: we should catch this at compile time */
WSP(sp, SLT_VCL_error,