From 7368504908e4a9cf715a67a93c38db412b0554ad Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 4 Jul 2014 14:38:36 +0100 Subject: [PATCH] agent: Add debugging when parsing addresses --- agent/agent.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agent/agent.c b/agent/agent.c index 9de4880..4087e61 100644 --- a/agent/agent.c +++ b/agent/agent.c @@ -2549,11 +2549,13 @@ nice_agent_gather_candidates ( GList *item; for (item = addresses; item; item = g_list_next (item)) { + const gchar *addr_string = item->data; 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); } else { + nice_debug ("Error: Failed to parse local address ‘%s’.", addr_string); nice_address_free (addr); } } -- 2.7.4