提交 da7e43cc authored 作者: Michael Jerris's avatar Michael Jerris

fix for MODAPP-66

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7053 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 77f93139
......@@ -688,7 +688,7 @@ static void terminate_session(switch_core_session_t **session, int line, switch_
tech_pvt = switch_core_session_get_private(*session);
if (tech_pvt->profile->ip && tech_pvt->local_port) {
if (tech_pvt && tech_pvt->profile && tech_pvt->profile->ip && tech_pvt->local_port) {
switch_rtp_release_port(tech_pvt->profile->ip, tech_pvt->local_port);
}
......@@ -697,7 +697,7 @@ static void terminate_session(switch_core_session_t **session, int line, switch_
return;
}
if (switch_test_flag(tech_pvt, TFLAG_TERM)) {
if (!tech_pvt || switch_test_flag(tech_pvt, TFLAG_TERM)) {
/*once is enough */
return;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论