commit eee80a61bfd69cf6fe6683d587d454fa4aaec936 from: Stefan Sperling via: Thomas Adam date: Thu Jun 23 14:09:34 2022 UTC fix error handling in find_pack_for_enumeration(); pointed out by op@ commit - 63915ee56b87d0499239ed129420c15d499e356f commit + eee80a61bfd69cf6fe6683d587d454fa4aaec936 blob - ec654014dfaabf0062a69ce99dbb6912f106ee24 blob + 80967f22962583dccb1a9aed894ee1197af08e8a --- lib/pack_create.c +++ lib/pack_create.c @@ -1655,7 +1655,7 @@ find_pack_for_enumeration(struct got_packidx **best_pa } } - if (best_packidx_path) { + if (best_packidx_path && err == NULL) { err = got_repo_get_packidx(best_packidx, best_packidx_path, repo); }