Commit 99595a96 authored by Youness Alaoui's avatar Youness Alaoui
Browse files

Do not gather candidates if we can't listen to the host interface

parent 5619d893
......@@ -1705,6 +1705,7 @@ nice_agent_gather_candidates (
GSList *i;
Stream *stream;
GSList *local_addresses = NULL;
gboolean ret = TRUE;
......@@ -1795,7 +1796,7 @@ nice_agent_gather_candidates (
nice_address_to_string (addr, ip);
nice_debug ("Agent %p: Unable to add local host candidate %s for s%d:%d"
". Invalid interface?", agent, ip, stream->id, component->id);
goto error;
......@@ -1853,13 +1854,14 @@ nice_agent_gather_candidates (
discovery_schedule (agent);
for (i = local_addresses; i; i = i->next)
nice_address_free (i->data);
g_slist_free (local_addresses);
return TRUE;
return ret;
static void priv_free_upnp (NiceAgent *agent)
Supports Markdown
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