Commit a001846b by Patrick Steinhardt

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.
parent fac42ff9
...@@ -79,6 +79,7 @@ static int curls_certificate(git_cert **out, git_stream *stream) ...@@ -79,6 +79,7 @@ static int curls_certificate(git_cert **out, git_stream *stream)
for (slist = certinfo->certinfo[0]; slist; slist = slist->next) { for (slist = certinfo->certinfo[0]; slist; slist = slist->next) {
char *str = git__strdup(slist->data); char *str = git__strdup(slist->data);
GITERR_CHECK_ALLOC(str); GITERR_CHECK_ALLOC(str);
git_vector_insert(&strings, str);
} }
/* Copy the contents of the vector into a strarray so we can expose them */ /* Copy the contents of the vector into a strarray so we can expose them */
......
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