]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3468 --resolve
authorJeff Lenk <jeff@jefflenk.com>
Mon, 1 Aug 2011 14:50:04 +0000 (09:50 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Mon, 1 Aug 2011 14:50:04 +0000 (09:50 -0500)
src/mod/applications/mod_commands/mod_commands.c

index ff99d8a43f15c9534c548a58432c180b2a336a40..28614618522b59e587ab76b4b1e539d29f4c73c3 100644 (file)
@@ -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);
                }
        }