From: Jeff Lenk Date: Mon, 1 Aug 2011 14:50:04 +0000 (-0500) Subject: FS-3468 --resolve X-Git-Tag: v1.2-rc1~86 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=69e61f762b0f923a1a63cccc8c89e74c955d684c;p=thirdparty%2Ffreeswitch.git FS-3468 --resolve --- diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index ff99d8a43f..2861461852 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -3302,8 +3302,7 @@ SWITCH_STANDARD_API(break_function) if (both) { const char *quuid = switch_channel_get_variable(channel, SWITCH_SIGNAL_BOND_VARIABLE); - if (quuid) { - qsession = switch_core_session_locate(quuid); + if (quuid && (qsession = switch_core_session_locate(quuid))) { qchannel = switch_core_session_get_channel(qsession); } }