From 6e2a37556d4793101b71ac83747a3acb31ee3c5b Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Tue, 23 Feb 2016 11:45:43 +0100 Subject: [PATCH] smart_pkt: check buffer with GITERR_CHECK_ALLOC_BUF --- src/transports/smart_pkt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } /*