From 792f3f86723b75cb532cdf7966ba00a639370016 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 6 Apr 2009 21:46:59 +0000 Subject: [PATCH] null out some more stuff git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12928 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_loopback/mod_loopback.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/mod/endpoints/mod_loopback/mod_loopback.c b/src/mod/endpoints/mod_loopback/mod_loopback.c index f3d6809097..e92aabf435 100644 --- a/src/mod/endpoints/mod_loopback/mod_loopback.c +++ b/src/mod/endpoints/mod_loopback/mod_loopback.c @@ -268,6 +268,15 @@ static switch_status_t channel_on_init(switch_core_session_t *session) if (tech_pvt->other_session) { if (switch_core_session_read_lock(tech_pvt->other_session) != SWITCH_STATUS_SUCCESS) { tech_pvt->other_session = NULL; + tech_pvt->other_tech_pvt = NULL; + tech_pvt->other_channel = NULL; + switch_clear_flag_locked(tech_pvt, TFLAG_LINKED); + if (b_tech_pvt) { + b_tech_pvt->other_session = NULL; + b_tech_pvt->other_tech_pvt = NULL; + b_tech_pvt->other_channel = NULL; + switch_clear_flag_locked(b_tech_pvt, TFLAG_LINKED); + } switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER); goto end; }