[Freeswitch-svn] [commit] r7053 - freeswitch/trunk/src/mod/endpoints/mod_dingaling

Freeswitch SVN mikej at freeswitch.org
Tue Jan 1 21:57:56 EST 2008


Author: mikej
Date: Tue Jan  1 21:57:56 2008
New Revision: 7053

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c

Log:
fix for MODAPP-66

Modified: freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c	Tue Jan  1 21:57:56 2008
@@ -688,7 +688,7 @@
 		tech_pvt = switch_core_session_get_private(*session);
 
 		
-		if (tech_pvt->profile->ip && tech_pvt->local_port) {
+		if (tech_pvt && tech_pvt->profile && tech_pvt->profile->ip && tech_pvt->local_port) {
 			switch_rtp_release_port(tech_pvt->profile->ip, tech_pvt->local_port);
 		}
 
@@ -697,7 +697,7 @@
 			return;
 		}
 
-		if (switch_test_flag(tech_pvt, TFLAG_TERM)) {
+		if (!tech_pvt || switch_test_flag(tech_pvt, TFLAG_TERM)) {
 			/*once is enough */
 			return;
 		}



More information about the Freeswitch-svn mailing list