mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 20:08:17 +00:00
Fix potential segfault, add support for MacOS X locks
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3058 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -467,6 +467,10 @@ static int action_redirect(struct mansession *s, struct message *m)
|
||||
return 0;
|
||||
}
|
||||
chan = ast_get_channel_by_name_locked(name);
|
||||
if (!chan) {
|
||||
astman_send_error(s, m, "Channel not existant");
|
||||
return 0;
|
||||
}
|
||||
if (strlen(name2))
|
||||
chan2 = ast_get_channel_by_name_locked(name2);
|
||||
res = ast_async_goto(chan, context, exten, pi);
|
||||
|
||||
Reference in New Issue
Block a user