Commit 4e5f332a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Only call SMP functions if we have a smp pointer




git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3916 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent b2510f37
......@@ -534,7 +534,8 @@ BAN_CheckObject(struct object *o, const struct sess *sp)
} else {
o->ttl = 0;
o->ban = NULL;
SMP_TTLchanged(o);
if (o->smp != NULL)
SMP_TTLchanged(o);
/* BAN also changed, but that is not important any more */
WSP(sp, SLT_ExpBan, "%u was banned", o->xid);
EXP_Rearm(o);
......
......@@ -201,7 +201,8 @@ EXP_Rearm(const struct object *o)
assert(oc->timer_idx != BINHEAP_NOIDX);
}
Lck_Unlock(&exp_mtx);
SMP_TTLchanged(o);
if (o->smp != NULL)
SMP_TTLchanged(o);
}
......
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