[Freeswitch-svn] [commit] r13230 - freeswitch/trunk/src/mod/endpoints/mod_sofia

FreeSWITCH SVN anthm at freeswitch.org
Mon May 4 14:48:10 PDT 2009


Author: anthm
Date: Mon May  4 16:48:10 2009
New Revision: 13230

Log:
fix mem corruption on failed register

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c

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	Mon May  4 16:48:10 2009
@@ -537,8 +537,7 @@
 		break;
 	}
 
-	if ((sofia_private && sofia_private == &mod_sofia_globals.destroy_private) || 
-		(!session && (status >= 300 && status != 401 && status != 407))) {
+	if ((sofia_private && sofia_private == &mod_sofia_globals.destroy_private)) {
 		nua_handle_bind(nh, NULL);
 		nua_handle_destroy(nh);
 		nh = NULL;



More information about the Freeswitch-svn mailing list