From 793eb2d0efd46534ad49ec4a027f4e84b5b09f55 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 13 Dec 2007 17:25:33 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6758 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_rtp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index adcc2cebd4..3b1a3560ad 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -335,8 +335,7 @@ SWITCH_DECLARE(switch_port_t) switch_rtp_request_port(const char *ip) 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 @@ SWITCH_DECLARE(switch_port_t) switch_rtp_request_port(const char *ip) port = 0; } - end: switch_mutex_unlock(port_lock); return port; }