[vlc-commits] securetransport: Fix compilation
Marvin Scholz
git at videolan.org
Sun Feb 26 13:24:26 CET 2017
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sun Feb 26 13:23:44 2017 +0100| [34567da2e6e6a042e46c040f8159d2b4d8fc6387] | committer: Marvin Scholz
securetransport: Fix compilation
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=34567da2e6e6a042e46c040f8159d2b4d8fc6387
---
modules/misc/securetransport.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/misc/securetransport.c b/modules/misc/securetransport.c
index 2e6c1c0..83e15a5 100644
--- a/modules/misc/securetransport.c
+++ b/modules/misc/securetransport.c
@@ -570,7 +570,7 @@ static void st_SessionClose (vlc_tls_t *session) {
static vlc_tls_t *st_SessionOpenCommon(vlc_tls_creds_t *crd, vlc_tls_t *sock,
bool b_server)
{
- vlc_tls_st_t *sys = malloc(sizeof (*st));
+ vlc_tls_st_t *sys = malloc(sizeof (*sys));
if (unlikely(sys == NULL))
return NULL;
@@ -643,7 +643,7 @@ static vlc_tls_t *st_ClientSessionOpen(vlc_tls_creds_t *crd, vlc_tls_t *sock,
vlc_tls_st_t *sys = (vlc_tls_st_t *)tls;
- ret = SSLSetPeerDomainName(sys->p_context, hostname, strlen(hostname));
+ OSStatus ret = SSLSetPeerDomainName(sys->p_context, hostname, strlen(hostname));
if (ret != noErr) {
msg_Err(crd, "cannot set peer domain name");
goto error;
@@ -726,7 +726,7 @@ static vlc_tls_t *st_ServerSessionOpen (vlc_tls_creds_t *crd, vlc_tls_t *sock,
vlc_tls_st_t *sys = (vlc_tls_st_t *)tls;
vlc_tls_creds_sys_t *p_cred_sys = crd->sys;
- ret = SSLSetCertificate(sys->p_context, p_cred_sys->server_cert_chain);
+ OSStatus ret = SSLSetCertificate(sys->p_context, p_cred_sys->server_cert_chain);
if (ret != noErr) {
msg_Err(crd, "cannot set server certificate");
goto error;
More information about the vlc-commits
mailing list