mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 03:04:19 +00:00
Merged revisions 238834 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r238834 | jpeeler | 2010-01-08 17:28:37 -0600 (Fri, 08 Jan 2010) | 4 lines Stop a crash when no peer is passed to masq_park_call. (distantly related to issue #16406) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238835 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -991,7 +991,7 @@ static int masq_park_call(struct ast_channel *rchan, struct ast_channel *peer, i
|
||||
peer = chan;
|
||||
}
|
||||
|
||||
if (!play_announcement && args == &park_args) {
|
||||
if (peer && (!play_announcement && args == &park_args)) {
|
||||
args->orig_chan_name = ast_strdupa(peer->name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user