Commit 73685049 authored by Philip Withnall's avatar Philip Withnall Committed by Olivier Crête

agent: Add debugging when parsing addresses

parent a9837e20
...@@ -2549,11 +2549,13 @@ nice_agent_gather_candidates ( ...@@ -2549,11 +2549,13 @@ nice_agent_gather_candidates (
GList *item; GList *item;
for (item = addresses; item; item = g_list_next (item)) { for (item = addresses; item; item = g_list_next (item)) {
const gchar *addr_string = item->data;
NiceAddress *addr = nice_address_new (); NiceAddress *addr = nice_address_new ();
if (nice_address_set_from_string (addr, item->data)) { if (nice_address_set_from_string (addr, addr_string)) {
local_addresses = g_slist_append (local_addresses, addr); local_addresses = g_slist_append (local_addresses, addr);
} else { } else {
nice_debug ("Error: Failed to parse local address ‘%s’.", addr_string);
nice_address_free (addr); nice_address_free (addr);
} }
} }
......
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