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

Freeswitch SVN anthm at freeswitch.org
Mon Oct 9 10:47:37 EDT 2006


Author: anthm
Date: Mon Oct  9 10:47:36 2006
New Revision: 3008

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

Log:
bug pointed out by stkn, thanks\!

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Mon Oct  9 10:47:36 2006
@@ -2944,7 +2944,7 @@
 			switch_channel_t *channel = switch_core_session_get_channel(tech_pvt->session);
 			switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
 			nua_respond(nh, SIP_401_UNAUTHORIZED, TAG_END());
-			return;
+			goto done;
 		}
 	}
 	
@@ -3066,6 +3066,8 @@
 		break;
 
 	}
+
+ done:
 
 	if (session) {
 		switch_core_session_rwunlock(session);



More information about the Freeswitch-svn mailing list