mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-20 03:59:01 +00:00
release_chan frees ch, so we should never touch ch after release_chan, this may cause segfaults.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@63519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3999,9 +3999,11 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data)
|
|||||||
|
|
||||||
stop_bc_tones(ch);
|
stop_bc_tones(ch);
|
||||||
hangup_chan(ch);
|
hangup_chan(ch);
|
||||||
release_chan(bc);
|
|
||||||
if(ch)
|
if(ch)
|
||||||
ch->state=MISDN_CLEANING;
|
ch->state=MISDN_CLEANING;
|
||||||
|
|
||||||
|
release_chan(bc);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case EVENT_BCHAN_ERROR:
|
case EVENT_BCHAN_ERROR:
|
||||||
|
Reference in New Issue
Block a user