diff options
author | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-16 15:21:46 +0000 |
---|---|---|
committer | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-16 15:21:46 +0000 |
commit | fd3eab9bab9db2dcd168b9eb1348537153a1aa32 (patch) | |
tree | c26d6e9f0f5d19e4d511c97b992858db8c575c7f | |
parent | 22c43ec9e608f462eda5bff2bb27243da8157756 (diff) |
Merged revisions 277143 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r277143 | seanbright | 2010-07-16 11:20:40 -0400 (Fri, 16 Jul 2010) | 8 lines
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/branches/1.6.2@277144 f38db490-d61c-443f-a65b-d21fe96a405b
-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 293ab3203..d313e172c 100644 --- a/main/translate.c +++ b/main/translate.c @@ -665,6 +665,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; |