mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Reference in New Issue
Block a user