aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-26 17:41:04 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-26 17:41:04 +0000
commit3fb4163ceb38807b6d417bc51e43fd2c5d0e2acb (patch)
treef0e68db18a18e2d5ce7aa2e4768aa2a7e6136f78
parent50ffe4bbe4a700b64c663d97eef0162dd6036a4e (diff)
Add channel locking to a function that needed to be doing it. This is just a
little something I noticed while working on a completely unrelated issue. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89594 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/pbx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 4df500921..c6b67da39 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -2298,8 +2298,10 @@ int ast_spawn_extension(struct ast_channel *c, const char *context, const char *
/* helper function to set extension and priority */
static void set_ext_pri(struct ast_channel *c, const char *exten, int pri)
{
+ ast_channel_lock(c);
ast_copy_string(c->exten, exten, sizeof(c->exten));
c->priority = pri;
+ ast_channel_unlock(c);
}
/*!