From 650cb5b160573528b6551da5822930364a495c04 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Wed, 26 Sep 2012 14:00:47 +0200 Subject: [PATCH] Prevent using getifaddrs() to get the local IP during ICE gathering. --- coreapi/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/misc.c b/coreapi/misc.c index df65b53f4..be977400f 100644 --- a/coreapi/misc.c +++ b/coreapi/misc.c @@ -620,7 +620,7 @@ int linphone_core_gather_ice_candidates(LinphoneCore *lc, LinphoneCall *call) lc->vtable.display_status(lc, _("ICE local candidates gathering in progress...")); /* Gather local host candidates. */ - if (linphone_core_get_local_ip_for(AF_INET, NULL, local_addr) < 0) { + if (linphone_core_get_local_ip_for(AF_INET, server, local_addr) < 0) { ms_error("Fail to get local ip"); return -1; }