From d2d87cf6a16c652538132f1b929dd31280064182 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sun, 24 Jun 2007 04:06:05 +0000 Subject: [PATCH] protect the hash. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5451 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_channel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/switch_channel.c b/src/switch_channel.c index f8289eb5af..facd221f05 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -772,6 +772,8 @@ SWITCH_DECLARE(void) switch_channel_event_set_data(switch_channel_t *channel, sw const void *var; char state_num[25]; + switch_mutex_lock(channel->profile_mutex); + if ((caller_profile = switch_channel_get_caller_profile(channel))) { originator_caller_profile = caller_profile->originator_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 } } - + switch_mutex_unlock(channel->profile_mutex); }