diff options
author | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-16 15:20:40 +0000 |
---|---|---|
committer | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-16 15:20:40 +0000 |
commit | 42de36a80501b32e139f910074e4170e32a0262e (patch) | |
tree | 4c6b2efe0cb6f8824d050f1ea0eae11b349e8998 /main/translate.c | |
parent | 3e48620e65ef961ca1bf17e5b8ed389821e6e6a2 (diff) |
Avoid crashing when installing a duplicate translation path with a lower cost.
(closes issue #17092)
Reported by: moy
Patches:
translate.rev254273.patch uploaded by moy (license 222)
Tested by: moy
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@277143 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/translate.c')
-rw-r--r-- | main/translate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/translate.c b/main/translate.c index 9f832a65d..24d886473 100644 --- a/main/translate.c +++ b/main/translate.c @@ -652,6 +652,7 @@ int __ast_register_translator(struct ast_translator *t, struct ast_module *mod) (u->cost > t->cost)) { AST_RWLIST_INSERT_BEFORE_CURRENT(t, list); t = NULL; + break; } } AST_RWLIST_TRAVERSE_SAFE_END; |