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

protect the hash.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5451 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 c01e8d3e
...@@ -772,6 +772,8 @@ SWITCH_DECLARE(void) switch_channel_event_set_data(switch_channel_t *channel, sw ...@@ -772,6 +772,8 @@ SWITCH_DECLARE(void) switch_channel_event_set_data(switch_channel_t *channel, sw
const void *var; const void *var;
char state_num[25]; char state_num[25];
switch_mutex_lock(channel->profile_mutex);
if ((caller_profile = switch_channel_get_caller_profile(channel))) { if ((caller_profile = switch_channel_get_caller_profile(channel))) {
originator_caller_profile = caller_profile->originator_caller_profile; originator_caller_profile = caller_profile->originator_caller_profile;
originatee_caller_profile = caller_profile->originatee_caller_profile; originatee_caller_profile = caller_profile->originatee_caller_profile;
...@@ -818,7 +820,7 @@ SWITCH_DECLARE(void) switch_channel_event_set_data(switch_channel_t *channel, sw ...@@ -818,7 +820,7 @@ SWITCH_DECLARE(void) switch_channel_event_set_data(switch_channel_t *channel, sw
} }
} }
switch_mutex_unlock(channel->profile_mutex);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论