[asterisk-commits] jpeeler: branch 1.4 r238834 - /branches/1.4/res/res_features.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jan 8 17:28:41 CST 2010
Author: jpeeler
Date: Fri Jan 8 17:28:37 2010
New Revision: 238834
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=238834
Log:
Stop a crash when no peer is passed to masq_park_call.
(distantly related to issue #16406)
Modified:
branches/1.4/res/res_features.c
Modified: branches/1.4/res/res_features.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/res/res_features.c?view=diff&rev=238834&r1=238833&r2=238834
==============================================================================
--- branches/1.4/res/res_features.c (original)
+++ branches/1.4/res/res_features.c Fri Jan 8 17:28:37 2010
@@ -590,7 +590,7 @@
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);
}
More information about the asterisk-commits
mailing list