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

fix missing null dmachine check

上级 b0b5fb16
......@@ -43,7 +43,9 @@ SWITCH_DECLARE(void) switch_core_session_set_dmachine(switch_core_session_t *ses
int i = (int) target;
if (i == 0 || i == 1) {
switch_ivr_dmachine_set_target(dmachine, target);
if (dmachine) {
switch_ivr_dmachine_set_target(dmachine, target);
}
session->dmachine[i] = dmachine;
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论