From: Russell Bryant Date: Mon, 26 Nov 2007 17:41:04 +0000 (+0000) Subject: Add channel locking to a function that needed to be doing it. This is just a X-Git-Tag: 1.4.16.1~115 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a17edf7d9917c8f39e0014edc5f07f6c8298ff9d;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@89594 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/pbx.c b/main/pbx.c index 4df500921b..c6b67da392 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); } /*!