mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 04:58:14 +00:00
fix table overflow when checking ice remote candidates
This commit is contained in:
parent
895f089eb5
commit
2b3d4ae3cf
1 changed files with 2 additions and 2 deletions
|
|
@ -1714,10 +1714,10 @@ bool_t check_ice_reinvite_needs_defered_response(LinphoneCall *call){
|
|||
|
||||
if (ice_check_list_state(cl) != ICL_Running) continue;
|
||||
|
||||
for (j = 0; j < SAL_MEDIA_DESCRIPTION_MAX_ICE_CANDIDATES; j++) {
|
||||
for (j = 0; j < SAL_MEDIA_DESCRIPTION_MAX_ICE_REMOTE_CANDIDATES; j++) {
|
||||
const SalIceRemoteCandidate *remote_candidate = &stream->ice_remote_candidates[j];
|
||||
if (remote_candidate->addr[0] != '\0') return TRUE;
|
||||
|
||||
else break;
|
||||
}
|
||||
}
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue