Commit 6e2a3755 by Patrick Steinhardt

smart_pkt: check buffer with GITERR_CHECK_ALLOC_BUF

parent 42c05ed5
...@@ -543,7 +543,9 @@ static int buffer_want_with_caps(const git_remote_head *head, transport_smart_ca ...@@ -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)); "%04xwant %s %s\n", (unsigned int)len, oid, git_buf_cstr(&str));
git_buf_free(&str); git_buf_free(&str);
return git_buf_oom(buf); GITERR_CHECK_ALLOC_BUF(buf);
return 0;
} }
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment