Commit 6831bdd5 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Check against the sampled oc->ban rather than the current oc->ban

Without this we could ban an object erranously if the ban lurker has
moved the OC in the ban list while we were evaluating.
parent 6dca7aec
......@@ -556,7 +556,7 @@ BAN_CheckObject(struct worker *wrk, struct objcore *oc, struct req *req)
oc->ban->refcount--;
VTAILQ_REMOVE(&oc->ban->objcore, oc, ban_list);
if (b == oc->ban) {
if (b == bn) {
/* not banned */
VTAILQ_INSERT_TAIL(&b0->objcore, oc, ban_list);
b0->refcount++;
......
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