[core] fix sdp parsing on invalid sdp
This commit is contained in:
parent
42d3100609
commit
6decc21669
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue