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/branches/1.4@238834 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Jeff Peeler 16 years ago
parent c3da049d25
commit 5be54b36b2

@ -590,7 +590,7 @@ static int masq_park_call(struct ast_channel *rchan, struct ast_channel *peer, i
peer = chan;
}
if (!play_announcement || !orig_chan_name) {
if (peer && (!play_announcement || !orig_chan_name)) {
/* chan is the channel being parked, peer is the effective park-er */
orig_chan_name = ast_strdupa(peer->name);
}

Loading…
Cancel
Save