]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 228145 via svnmerge from
authorDavid Brooks <dbrooks@digium.com>
Thu, 5 Nov 2009 19:39:23 +0000 (19:39 +0000)
committerDavid Brooks <dbrooks@digium.com>
Thu, 5 Nov 2009 19:39:23 +0000 (19:39 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

................
  r228145 | dbrooks | 2009-11-05 13:34:50 -0600 (Thu, 05 Nov 2009) | 16 lines

  Merged revisions 228078 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r228078 | dbrooks | 2009-11-05 12:59:41 -0600 (Thu, 05 Nov 2009) | 9 lines

    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
  ........
................

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

channels/chan_misdn.c

index 0a80ee8b70cc7346c047a277b2e301e873ed27b7..ea1cecd9d7353a24e34a856844f326d781e59fec 100644 (file)
@@ -5097,6 +5097,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;