From: Anthony Minessale Date: Tue, 11 Nov 2008 15:25:45 +0000 (+0000) Subject: fix err X-Git-Tag: v1.0.2~576 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0acd4ff65382355a1f04030d8f8cd6239ce1eab;p=thirdparty%2Ffreeswitch.git fix err git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10330 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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)) {