From 5be54b36b26ad7f76793a9c7324e6bb94fd30d94 Mon Sep 17 00:00:00 2001 From: Jeff Peeler Date: Fri, 8 Jan 2010 23:28:37 +0000 Subject: [PATCH] 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 --- res/res_features.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_features.c b/res/res_features.c index c74c87236c..e5a6179e44 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -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); } -- 2.47.2