提交 a70c232e 编写于 作者: J Junio C Hamano

http-fetch: do not SEGV after fetching a bad pack idx file

Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 d85fe389
......@@ -442,6 +442,8 @@ static int setup_index(struct walker *walker, struct alt_base *repo, unsigned ch
return -1;
new_pack = parse_pack_index(sha1);
if (!new_pack)
return -1; /* parse_pack_index() already issued error message */
new_pack->next = repo->packs;
repo->packs = new_pack;
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册