[core] fix sdp parsing on invalid sdp

This commit is contained in:
Seven Du 2020-02-25 10:42:23 +08:00 committed by Andrey Volk
parent 42d3100609
commit 6decc21669
1 changed files with 1 additions and 1 deletions

View File

@ -4263,7 +4263,7 @@ static switch_status_t check_ice(switch_media_handle_t *smh, switch_media_type_t
cid = fields[1] ? atoi(fields[1]) - 1 : 0; cid = fields[1] ? atoi(fields[1]) - 1 : 0;
if (argc < 5 || engine->ice_in.cand_idx[cid] >= MAX_CAND - 1) { if (argc < 6 || engine->ice_in.cand_idx[cid] >= MAX_CAND - 1) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(smh->session), SWITCH_LOG_WARNING, "Invalid data\n"); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(smh->session), SWITCH_LOG_WARNING, "Invalid data\n");
continue; continue;
} }