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

assert bounds checking

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10661 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 b03f519f
......@@ -204,6 +204,7 @@ static switch_status_t my_on_hangup(switch_core_session_t *session)
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Got error [%ld] posting to web server [%s]\n",
httpRes, globals.urls[globals.url_index]);
globals.url_index++;
switch_assert(globals.url_count <= MAX_URLS);
if (globals.url_index >= globals.url_count) {
globals.url_index = 0;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论