Commit 3a66b678 authored by Olivier Crête's avatar Olivier Crête

agent: Don't return the socket to the app in any reliable case

parent d1d0db0c
...@@ -4097,6 +4097,10 @@ nice_agent_get_selected_socket (NiceAgent *agent, guint stream_id, ...@@ -4097,6 +4097,10 @@ nice_agent_get_selected_socket (NiceAgent *agent, guint stream_id,
agent_lock(); agent_lock();
/* Reliable streams are pseudotcp or MUST use RFC 4571 framing */
if (agent->reliable)
goto done;
/* step: check that params specify an existing pair */ /* step: check that params specify an existing pair */
if (!agent_find_component (agent, stream_id, component_id, if (!agent_find_component (agent, stream_id, component_id,
&stream, &component)) &stream, &component))
......
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