Commit 9de4d9dd authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix NULL dereference (CID#167)

parent 2c3d9f17
...@@ -723,10 +723,11 @@ static int OpenClient (vlc_object_t *obj) ...@@ -723,10 +723,11 @@ static int OpenClient (vlc_object_t *obj)
char *servername = var_GetNonEmptyString (p_session, "tls-server-name"); char *servername = var_GetNonEmptyString (p_session, "tls-server-name");
if (servername == NULL ) if (servername == NULL )
msg_Err (p_session, "server name missing for TLS session"); msg_Err (p_session, "server name missing for TLS session");
else
gnutls_server_name_set (p_sys->session.session, GNUTLS_NAME_DNS,
servername, strlen (servername));
p_sys->session.psz_hostname = servername; p_sys->session.psz_hostname = servername;
gnutls_server_name_set (p_sys->session.session, GNUTLS_NAME_DNS,
servername, strlen (servername));
return VLC_SUCCESS; return VLC_SUCCESS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment