aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordbrooks <dbrooks@f38db490-d61c-443f-a65b-d21fe96a405b>2009-11-05 18:59:41 +0000
committerdbrooks <dbrooks@f38db490-d61c-443f-a65b-d21fe96a405b>2009-11-05 18:59:41 +0000
commit089424b350547e91e39d4dd8f6d14e304884721d (patch)
treeab84229f26f4cbe7de1823b6989a23b796a8d101
parent6f242aa9408194bc2c10330e52e6bca8afe7d02e (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@228078 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_misdn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c
index b9df9f898..4ec3236ef 100644
--- a/channels/chan_misdn.c
+++ b/channels/chan_misdn.c
@@ -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;