[Freeswitch-svn] [commit] r6758 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Thu Dec 13 12:25:34 EST 2007


Author: anthm
Date: Thu Dec 13 12:25:33 2007
New Revision: 6758

Modified:
   freeswitch/trunk/src/switch_rtp.c

Log:
update

Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c	(original)
+++ freeswitch/trunk/src/switch_rtp.c	Thu Dec 13 12:25:33 2007
@@ -335,8 +335,7 @@
 	alloc = switch_core_hash_find(alloc_hash, ip);
 	if (!alloc) {
 		if (switch_core_port_allocator_new(START_PORT, END_PORT, SPF_EVEN, &alloc) != SWITCH_STATUS_SUCCESS) {
-			port = 0;
-			goto end;
+			abort();
 		}
 
 		switch_core_hash_insert(alloc_hash, ip, alloc);
@@ -346,7 +345,6 @@
 		port = 0;
 	}
 
- end:
 	switch_mutex_unlock(port_lock);
 	return port;
 }



More information about the Freeswitch-svn mailing list