提交 151af23a authored 作者: Michael Jerris's avatar Michael Jerris

handle allocation error. Found by Klockwork (www.klocwork.com)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8485 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 ba11795a
...@@ -1852,6 +1852,8 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session, ...@@ -1852,6 +1852,8 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session,
user = strdup(outbound_profile->destination_number); user = strdup(outbound_profile->destination_number);
if (!user) goto done;
if (!(domain = strchr(user, '@'))) { if (!(domain = strchr(user, '@'))) {
goto done; goto done;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论