From 69e61f762b0f923a1a63cccc8c89e74c955d684c Mon Sep 17 00:00:00 2001
From: Jeff Lenk <jeff@jefflenk.com>
Date: Mon, 1 Aug 2011 09:50:04 -0500
Subject: [PATCH] FS-3468 --resolve

---
 src/mod/applications/mod_commands/mod_commands.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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);
 		}
 	}