From: Anthony Minessale Date: Wed, 16 Apr 2008 22:49:36 +0000 (+0000) Subject: make sure both channels are sip when dereferencing it's guts X-Git-Tag: v1.0-rc4~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4357b424638c59309fcd8d6191c95fcd82a251f;p=thirdparty%2Ffreeswitch.git make sure both channels are sip when dereferencing it's guts git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8123 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index e5040c2e2b..d28655d3f4 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -3077,7 +3077,7 @@ static void sofia_info_send_sipfrag(switch_core_session_t *aleg, switch_core_ses private_object_t *b_tech_pvt = NULL, *a_tech_pvt = NULL; char message[256] = ""; - if (aleg && bleg) { + if (aleg && bleg && switch_core_session_compare(aleg, bleg)) { a_tech_pvt = (private_object_t *) switch_core_session_get_private(aleg); b_tech_pvt = (private_object_t *) switch_core_session_get_private(bleg);