Commit 9be637ae authored by Youness Alaoui's avatar Youness Alaoui
Browse files

Port libnice agent to the StunUsageIceReturn API for stun_usage_ice_conncheck_create_reply

parent c8ef8403
...@@ -2420,10 +2420,11 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream, ...@@ -2420,10 +2420,11 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream,
g_free (req.key); g_free (req.key);
} }
if (res == EACCES) if (res == STUN_USAGE_ICE_RETURN_ROLE_CONFLICT)
priv_check_for_role_conflict (agent, control); priv_check_for_role_conflict (agent, control);
if (res == 0 || res == EACCES) { if (res == STUN_USAGE_ICE_RETURN_SUCCESS ||
res == STUN_USAGE_ICE_RETURN_ROLE_CONFLICT) {
/* case 1: valid incoming request, send a reply/error */ /* case 1: valid incoming request, send a reply/error */
bool use_candidate = bool use_candidate =
stun_usage_ice_conncheck_use_candidate (&req); stun_usage_ice_conncheck_use_candidate (&req);
......
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