[vlc-commits] securetransport: fix initialization order
Rémi Denis-Courmont
git at videolan.org
Sun Nov 18 16:57:24 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Nov 18 14:52:08 2018 +0200| [9d5fc831528fe5baefd6a63fc435a5b501bd3b79] | committer: Rémi Denis-Courmont
securetransport: fix initialization order
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9d5fc831528fe5baefd6a63fc435a5b501bd3b79
---
modules/misc/securetransport.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/misc/securetransport.c b/modules/misc/securetransport.c
index 4dd20018b0..41dcf18215 100644
--- a/modules/misc/securetransport.c
+++ b/modules/misc/securetransport.c
@@ -685,7 +685,6 @@ static vlc_tls_t *st_SessionOpenCommon(vlc_tls_creds_t *crd, vlc_tls_t *sock,
vlc_tls_t *tls = &sys->tls;
tls->ops = &st_ops;
- crd->handshake = st_Handshake;
SSLContextRef p_context = NULL;
#if TARGET_OS_IPHONE
@@ -833,6 +832,7 @@ static int OpenClient (vlc_tls_creds_t *crd) {
crd->sys = sys;
crd->open = st_ClientSessionOpen;
+ crd->handshake = st_Handshake;
crd->destroy = st_ClientDestroy;
return VLC_SUCCESS;
@@ -989,6 +989,7 @@ static int OpenServer (vlc_tls_creds_t *crd, const char *cert, const char *key)
crd->sys = sys;
crd->open = st_ServerSessionOpen;
+ crd->handshake = st_Handshake;
crd->destroy = st_ServerDestroy;
out:
More information about the vlc-commits
mailing list