summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2016-02-23 11:45:43 +0100
committerPatrick Steinhardt <ps@pks.im>2016-02-23 11:50:23 +0100
commit6e2a37556d4793101b71ac83747a3acb31ee3c5b (patch)
tree65b421e24b5eb8a8ebaa0c9b648557df9bb8100e
parent42c05ed56b3bc4f5963a8c68ec6fec803b7e22e3 (diff)
downloadlibgit2-6e2a37556d4793101b71ac83747a3acb31ee3c5b.tar.gz
smart_pkt: check buffer with GITERR_CHECK_ALLOC_BUF
-rw-r--r--src/transports/smart_pkt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/transports/smart_pkt.c b/src/transports/smart_pkt.c
index 870f08497..2c33916c7 100644
--- a/src/transports/smart_pkt.c
+++ b/src/transports/smart_pkt.c
@@ -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;
}
/*