From a17edf7d9917c8f39e0014edc5f07f6c8298ff9d Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Mon, 26 Nov 2007 17:41:04 +0000 Subject: [PATCH] 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 --- main/pbx.c | 2 ++ 1 file changed, 2 insertions(+) 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); } /*!