From 83a40824f4656d7a2353cabe60c2045d976c1b42 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 23 Apr 2015 10:11:37 -0400 Subject: [PATCH] fix number of ICE components for tricke-ICE no-components case --- daemon/ice.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/daemon/ice.c b/daemon/ice.c index b7e9ea81b..346a4602e 100644 --- a/daemon/ice.c +++ b/daemon/ice.c @@ -432,7 +432,15 @@ pair: } } - ag->active_components = comps; + if (comps) + ag->active_components = comps; + if (!ag->active_components) { + /* determine components for tricke-ice case */ + comps = 2; + if (!components[1]) + comps = 1; + ag->active_components = comps; + } /* if we're here, we can start our ICE checks */ if (recalc)