aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-16 21:12:25 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-16 21:12:25 +0000
commit36c59d508253b566cb67cf9f781936cef776bff8 (patch)
tree427eb9c4f2156c5c732ee75de6883b86dfa0a117 /channels
parentbf4f9e2c711021680ca90dc3e02cd0ad8be48fa0 (diff)
Fix the actual place that was pointed out, for previous commit.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@270983 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_agent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_agent.c b/channels/chan_agent.c
index 0b1590341..3451de220 100644
--- a/channels/chan_agent.c
+++ b/channels/chan_agent.c
@@ -2298,7 +2298,9 @@ static int function_agent(struct ast_channel *chan, const char *cmd, char *data,
}
} else if (!strcasecmp(args.item, "fullchannel")) {
if (agent->chan) {
+ ast_channel_lock(agent->chan);
ast_copy_string(buf, agent->chan->name, len);
+ ast_channel_unlock(agent->chan);
}
} else if (!strcasecmp(args.item, "exten")) {
buf[0] = '\0';