Skip to content
Snippets Groups Projects
Commit 215fb1ab authored by Sean Bright's avatar Sean Bright
Browse files

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: https://origsvn.digium.com/svn/asterisk/trunk@277143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 0bb1fbb5
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment