Commit 3e1f286f authored by Youness Alaoui's avatar Youness Alaoui Committed by Olivier Crête

Do not return the socket to the app if we use ice-tcp, even in unreliable case

parent f8ed0188
...@@ -4150,6 +4150,10 @@ nice_agent_get_selected_socket (NiceAgent *agent, guint stream_id, ...@@ -4150,6 +4150,10 @@ nice_agent_get_selected_socket (NiceAgent *agent, guint stream_id,
if (component->selected_pair.local->type == NICE_CANDIDATE_TYPE_RELAYED) if (component->selected_pair.local->type == NICE_CANDIDATE_TYPE_RELAYED)
goto done; goto done;
/* ICE-TCP requires RFC4571 framing, even if unreliable */
if (component->selected_pair.local->transport != NICE_CANDIDATE_TRANSPORT_UDP)
goto done;
nice_socket = (NiceSocket *)component->selected_pair.local->sockptr; nice_socket = (NiceSocket *)component->selected_pair.local->sockptr;
if (nice_socket->fileno) if (nice_socket->fileno)
g_socket = g_object_ref (nice_socket->fileno); g_socket = g_object_ref (nice_socket->fileno);
......
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