Commit Diff
--- lib/repository_admin.c +++ lib/repository_admin.c @@ -101,7 +101,7 @@ get_reflist_object_ids(struct got_object_id ***ids, in } } - if (nalloc >= *nobjects) { + if (nalloc <= *nobjects) { struct got_object_id **new; new = recallocarray(*ids, nalloc, nalloc + alloc_chunksz,