From f0acd4ff65382355a1f04030d8f8cd6239ce1eab Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 11 Nov 2008 15:25:45 +0000 Subject: [PATCH] fix err git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10330 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr_bridge.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/switch_ivr_bridge.c b/src/switch_ivr_bridge.c index 540bb5ecd7..1532b88899 100644 --- a/src/switch_ivr_bridge.c +++ b/src/switch_ivr_bridge.c @@ -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)) {