]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_misdn Asterisk 1.4.27-rc2 crash
authorDavid Brooks <dbrooks@digium.com>
Thu, 5 Nov 2009 18:59:41 +0000 (18:59 +0000)
committerDavid Brooks <dbrooks@digium.com>
Thu, 5 Nov 2009 18:59:41 +0000 (18:59 +0000)
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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@228078 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c

index b9df9f898db52b85764d8b62901d03679293c265..4ec3236ef1d76824b9eeac959c31bec5048c5ca3 100644 (file)
@@ -4916,6 +4916,7 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data)
                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;