[asterisk-commits] jrose: trunk r420028 - /trunk/main/format.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Aug 5 09:00:01 CDT 2014


Author: jrose
Date: Tue Aug  5 08:59:53 2014
New Revision: 420028

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=420028
Log:
chan_iax2: Fix a crash that occurs when using allow=all for an IAX2 peer

Or any combination of codecs that includes Opus.

ASTERISK-24107 #close
Review: https://reviewboard.asterisk.org/r/3885/

Modified:
    trunk/main/format.c

Modified: trunk/main/format.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/format.c?view=diff&rev=420028&r1=420027&r2=420028
==============================================================================
--- trunk/main/format.c (original)
+++ trunk/main/format.c Tue Aug  5 08:59:53 2014
@@ -247,7 +247,7 @@
 
 	interface = format1->interface ? format1->interface : format2->interface;
 
-	if (interface) {
+	if (interface && interface->format_cmp) {
 		return interface->format_cmp(format1, format2);
 	}
 




More information about the asterisk-commits mailing list