Also send OBJ_ITER_END for zero length

parent 96b2e567
......@@ -213,6 +213,8 @@ tus_objiterator(struct worker *wrk, struct objcore *oc,
} while (off < fcore->len);
}
if (r == 0 && (flags & OBJ_ITER_END) == 0)
r = func(priv, flags | OBJ_ITER_END, NULL, 0);
return (r);
}
......
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