summaryrefslogtreecommitdiff
path: root/src/curl_stream.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-06-29 22:51:18 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2015-07-10 09:28:33 -0500
commit79698030b090b017aea6d33fb3f02d3fcb046738 (patch)
treeaa4c8bc19a32ca7ef95f6ba6ada90bf9e33e1791 /src/curl_stream.c
parent9847d80ddc97b85ca38e158dc4781f0a3c6081ca (diff)
downloadlibgit2-79698030b090b017aea6d33fb3f02d3fcb046738.tar.gz
git_cert: child types use proper base type
Diffstat (limited to 'src/curl_stream.c')
-rw-r--r--src/curl_stream.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/curl_stream.c b/src/curl_stream.c
index 6534bdbbe..63421fcf7 100644
--- a/src/curl_stream.c
+++ b/src/curl_stream.c
@@ -67,9 +67,9 @@ static int curls_certificate(git_cert **out, git_stream *stream)
/* No information is available, can happen with SecureTransport */
if (certinfo->num_of_certs == 0) {
- s->cert_info.cert_type = GIT_CERT_NONE;
- s->cert_info.data = NULL;
- s->cert_info.len = 0;
+ s->cert_info.parent.cert_type = GIT_CERT_NONE;
+ s->cert_info.data = NULL;
+ s->cert_info.len = 0;
return 0;
}
@@ -85,11 +85,11 @@ static int curls_certificate(git_cert **out, git_stream *stream)
s->cert_info_strings.strings = (char **) strings.contents;
s->cert_info_strings.count = strings.length;
- s->cert_info.cert_type = GIT_CERT_STRARRAY;
- s->cert_info.data = &s->cert_info_strings;
- s->cert_info.len = strings.length;
+ s->cert_info.parent.cert_type = GIT_CERT_STRARRAY;
+ s->cert_info.data = &s->cert_info_strings;
+ s->cert_info.len = strings.length;
- *out = (git_cert *) &s->cert_info;
+ *out = &s->cert_info.parent;
return 0;
}