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

Avoid an assertion failure by not calling EXP_TTLChange() for objects which

are not on the expiry heap.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1568 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent e4277d23
......@@ -157,7 +157,8 @@ VSLR(SLT_Debug, sp->fd, sp->hash_b, sp->hash_e);
} else if (BAN_CheckObject(o, h->hd[HTTP_HDR_URL].b)) {
o->ttl = 0;
VSL(SLT_ExpBan, 0, "%u was banned", o->xid);
EXP_TTLchange(o);
if (o->heap_idx != 0)
EXP_TTLchange(o);
} else if (o->vary == NULL || VRY_Match(sp, o->vary))
break;
o->refcnt--;
......
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