[svn-commits] dbrooks: branch 1.4 r228078 - /branches/1.4/channels/chan_misdn.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Nov 5 12:59:47 CST 2009


Author: dbrooks
Date: Thu Nov  5 12:59:41 2009
New Revision: 228078

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=228078
Log:
chan_misdn Asterisk 1.4.27-rc2 crash

Crash related to chan_misdn connection. Patch submitted by gknispel_proformatique, tested
by francesco_r. "I have many crash since i have upgraded to Asterisk 1.4.27-rc2. Attached
a full bt." This patch zeros out an ast_frame.

(closes issue #16041)
Reported by: francesco_r

Modified:
    branches/1.4/channels/chan_misdn.c

Modified: branches/1.4/channels/chan_misdn.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/channels/chan_misdn.c?view=diff&rev=228078&r1=228077&r2=228078
==============================================================================
--- branches/1.4/channels/chan_misdn.c (original)
+++ branches/1.4/channels/chan_misdn.c Thu Nov  5 12:59:41 2009
@@ -4916,6 +4916,7 @@
 		if (!misdn_cap_is_speech(ch->bc->capability)) {
 			struct ast_frame frame;
 			/*In Data Modes we queue frames*/
+			memset(&frame, 0, sizeof(frame));
 			frame.frametype  = AST_FRAME_VOICE; /*we have no data frames yet*/
 			frame.subclass = AST_FORMAT_ALAW;
 			frame.datalen = bc->bframe_len;




More information about the svn-commits mailing list