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/openssl_stream.c | |
parent | 9847d80ddc97b85ca38e158dc4781f0a3c6081ca (diff) | |
download | libgit2-79698030b090b017aea6d33fb3f02d3fcb046738.tar.gz |
git_cert: child types use proper base type
Diffstat (limited to 'src/openssl_stream.c')
-rw-r--r-- | src/openssl_stream.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/openssl_stream.c b/src/openssl_stream.c index 958252e9f..1bd4f1421 100644 --- a/src/openssl_stream.c +++ b/src/openssl_stream.c @@ -358,11 +358,12 @@ int openssl_certificate(git_cert **out, git_stream *stream) return -1; } - st->cert_info.cert_type = GIT_CERT_X509; + st->cert_info.parent.cert_type = GIT_CERT_X509; st->cert_info.data = encoded_cert; st->cert_info.len = len; - *out = (git_cert *)&st->cert_info; + *out = &st->cert_info.parent; + return 0; } |