mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-03 21:59:41 +00:00
smart_pkt: check buffer with GITERR_CHECK_ALLOC_BUF
This commit is contained in:
parent
42c05ed56b
commit
6e2a37556d
@ -543,7 +543,9 @@ static int buffer_want_with_caps(const git_remote_head *head, transport_smart_ca
|
||||
"%04xwant %s %s\n", (unsigned int)len, oid, git_buf_cstr(&str));
|
||||
git_buf_free(&str);
|
||||
|
||||
return git_buf_oom(buf);
|
||||
GITERR_CHECK_ALLOC_BUF(buf);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user