Fix OBJ_ITER_END flag for VC#4035

parent 73cd3d89
......@@ -201,7 +201,7 @@ tus_objiterator(struct worker *wrk, struct objcore *oc,
p = (char *)fcore->ptr + off;
off += len;
if (off == fcore->len)
if (off == fcore->len && i == c->n)
flags |= OBJ_ITER_END;
r = func(priv, flags, p, len);
......
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