mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-21 00:52:48 +00:00
[Core] Fix possible deadlock of an rtp_session in handle_ice()
This commit is contained in:
parent
dba2c5c4df
commit
e508795b77
@ -1151,8 +1151,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
|
||||
|
||||
if (!host || !port) {
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_ERROR, "Error setting remote host!\n");
|
||||
switch_mutex_unlock(rtp_session->ice_mutex);
|
||||
return;
|
||||
goto end;
|
||||
}
|
||||
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_INFO,
|
||||
@ -1176,8 +1175,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
|
||||
if (switch_sockaddr_info_get(&ice->addr, host, SWITCH_UNSPEC, port, 0, rtp_session->pool) != SWITCH_STATUS_SUCCESS ||
|
||||
!ice->addr) {
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_ERROR, "Error setting remote host!\n");
|
||||
switch_mutex_unlock(rtp_session->ice_mutex);
|
||||
return;
|
||||
goto end;
|
||||
}
|
||||
|
||||
if ((rtp_session->rtp_bugs & RTP_BUG_ALWAYS_AUTO_ADJUST)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user