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

don't pass null to switch_loadable_module_get_dialplan_interface. Found by…

don't pass null to switch_loadable_module_get_dialplan_interface. Found by Klockwork (www.klocwork.com)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8433 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 6cef49df
...@@ -1098,7 +1098,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_execute_exten(switch_core_se ...@@ -1098,7 +1098,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_execute_exten(switch_core_se
if ((dparg = strchr(dpname, ':'))) { if ((dparg = strchr(dpname, ':'))) {
*dparg++ = '\0'; *dparg++ = '\0';
} }
} else {
continue;
} }
if (!(dialplan_interface = switch_loadable_module_get_dialplan_interface(dpname))) { if (!(dialplan_interface = switch_loadable_module_get_dialplan_interface(dpname))) {
continue; continue;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论