提交 607ef575 authored 作者: Giovanni Maruzzelli's avatar Giovanni Maruzzelli

FS-5482 skypopen: check assignment on possibly NULL pointer, avoiding segfault

上级 a71b199d
......@@ -1301,7 +1301,9 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
switch_copy_string(interface_name, outbound_profile->destination_number, 255);
slash = strrchr(interface_name, '/');
if(slash != NULL){
*slash = '\0';
}
switch_mutex_lock(globals.mutex);
if (strncmp("ANY", interface_name, strlen(interface_name)) == 0 || strncmp("RR", interface_name, strlen(interface_name)) == 0) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论