[svn-commits] seanbright: trunk r277143 - /trunk/main/translate.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jul 16 10:20:45 CDT 2010


Author: seanbright
Date: Fri Jul 16 10:20:40 2010
New Revision: 277143

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=277143
Log:
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

Modified:
    trunk/main/translate.c

Modified: trunk/main/translate.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/translate.c?view=diff&rev=277143&r1=277142&r2=277143
==============================================================================
--- trunk/main/translate.c (original)
+++ trunk/main/translate.c Fri Jul 16 10:20:40 2010
@@ -652,6 +652,7 @@
 		    (u->cost > t->cost)) {
 			AST_RWLIST_INSERT_BEFORE_CURRENT(t, list);
 			t = NULL;
+			break;
 		}
 	}
 	AST_RWLIST_TRAVERSE_SAFE_END;




More information about the svn-commits mailing list