[Freeswitch-svn] [commit] r8123 -	freeswitch/trunk/src/mod/endpoints/mod_sofia
    Freeswitch SVN 
    anthm at freeswitch.org
       
    Wed Apr 16 18:49:37 EDT 2008
    
    
  
Author: anthm
Date: Wed Apr 16 18:49:36 2008
New Revision: 8123
Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
Log:
make sure both channels are sip when dereferencing it's guts
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	Wed Apr 16 18:49:36 2008
@@ -3077,7 +3077,7 @@
 	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);
 		
    
    
More information about the Freeswitch-svn
mailing list