From 4038732d0883fc407ac93264097558a74b83c72f 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 08dba1f73..f3ae61f93 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)