diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2015-06-29 22:51:18 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2015-07-10 09:28:33 -0500 |
commit | 79698030b090b017aea6d33fb3f02d3fcb046738 (patch) | |
tree | aa4c8bc19a32ca7ef95f6ba6ada90bf9e33e1791 /src/curl_stream.c | |
parent | 9847d80ddc97b85ca38e158dc4781f0a3c6081ca (diff) | |
download | libgit2-79698030b090b017aea6d33fb3f02d3fcb046738.tar.gz |
git_cert: child types use proper base type
Diffstat (limited to 'src/curl_stream.c')
-rw-r--r-- | src/curl_stream.c | 14 |
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; } |