]> sjero.net Git - linphone/commitdiff
Fix dial plan e164 infinite loop
authorYann Diorcet <yann.diorcet@belledonne-communications.com>
Thu, 3 Jan 2013 07:48:10 +0000 (08:48 +0100)
committerYann Diorcet <yann.diorcet@belledonne-communications.com>
Thu, 3 Jan 2013 07:50:40 +0000 (08:50 +0100)
coreapi/proxy.c

index 517af502d03be2c905f582685064ba05aa679bdd..a109a3be2daac126e73c473198b36dcd53cce7db 100644 (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 {