]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 13 Dec 2007 17:25:33 +0000 (17:25 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 13 Dec 2007 17:25:33 +0000 (17:25 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6758 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_rtp.c

index adcc2cebd4820edf6ca36b8ea437d20c63426e35..3b1a3560addaa35729756aafaf1a23431b776cc4 100644 (file)
@@ -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;
 }