Fix dial plan e164 infinite loop

This commit is contained in:
Yann Diorcet 2013-01-03 08:48:10 +01:00
parent 414fcf3841
commit 271e68f16a

View file

@ -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 {