]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix err
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 11 Nov 2008 15:25:45 +0000 (15:25 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 11 Nov 2008 15:25:45 +0000 (15:25 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10330 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_bridge.c

index 540bb5ecd712d55e57cec8dff208de9a8711e9c5..1532b888990fcf57f6e43b2bfa2dcefac3ccba06 100644 (file)
@@ -1159,8 +1159,9 @@ SWITCH_DECLARE(void) switch_ivr_intercept_session(switch_core_session_t *session
        switch_channel_pre_answer(channel);
 
        if ((buuid = switch_channel_get_variable(rchannel, SWITCH_SIGNAL_BOND_VARIABLE))) {
-               bsession = switch_core_session_locate(buuid);
-               bchannel = switch_core_session_get_channel(bsession);
+               if ((bsession = switch_core_session_locate(buuid))) {
+                       bchannel = switch_core_session_get_channel(bsession);
+               }
        }
 
        if (!switch_channel_test_flag(rchannel, CF_ANSWERED)) {