From a001846b25124a47ed96f865548b5321202d51ae Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Mon, 8 Feb 2016 17:05:57 +0100 Subject: [PATCH] curl_stream: fix unused cert infos When copying contents of the cURL certiinfo we duplicate the data but forget to actually put it into the vector. --- src/curl_stream.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/curl_stream.c b/src/curl_stream.c index 9f8b202a8..9963d94cc 100644 --- a/src/curl_stream.c +++ b/src/curl_stream.c @@ -79,6 +79,7 @@ static int curls_certificate(git_cert **out, git_stream *stream) for (slist = certinfo->certinfo[0]; slist; slist = slist->next) { char *str = git__strdup(slist->data); GITERR_CHECK_ALLOC(str); + git_vector_insert(&strings, str); } /* Copy the contents of the vector into a strarray so we can expose them */