return r;
if (le64toh(o->data.hash) != hash)
- return -EBADMSG;
+ goto next;
if (o->object.flags & OBJECT_COMPRESSED) {
#ifdef HAVE_XZ
return 1;
}
+ next:
p = le64toh(o->data.next_hash_offset);
}
/* This bisects the array in object 'first', but first checks
* an extra */
-
r = test_object(f, extra, needle);
if (r < 0)
return r;
if (offset)
*offset = extra;
+
+ if (idx)
+ *idx = 0;
+
+ return 1;
} else if (r == TEST_RIGHT)
return 0;