From 271e68f16a1341d45493c51a0ee1bd410c6734d4 Mon Sep 17 00:00:00 2001 From: Yann Diorcet Date: Thu, 3 Jan 2013 08:48:10 +0100 Subject: [PATCH] Fix dial plan e164 infinite loop --- coreapi/proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/proxy.c b/coreapi/proxy.c index 517af502d..a109a3be2 100644 --- a/coreapi/proxy.c +++ b/coreapi/proxy.c @@ -625,7 +625,7 @@ int linphone_dial_plan_lookup_ccc_from_e164(const char* e164) { found++; } } - } while (found>1 || found==0); + } while ((found>1 || found==0) && i < sizeof(dial_plan->ccc)); if (found==1) { return atoi(elected_dial_plan->ccc); } else {