提交 bd828b76 authored 作者: Anthony Minessale's avatar Anthony Minessale

null out pointer on failed read lock

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12925 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 dcc59eac
......@@ -267,6 +267,7 @@ static switch_status_t channel_on_init(switch_core_session_t *session)
if (tech_pvt->other_session) {
if (switch_core_session_read_lock(tech_pvt->other_session) != SWITCH_STATUS_SUCCESS) {
tech_pvt->other_session = NULL;
switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
goto end;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论