fix table overflow

This commit is contained in:
Simon Morlat 2018-02-16 16:04:44 +01:00
parent 7c397eef3d
commit 8a336839b5

View file

@ -539,7 +539,7 @@ void IceAgent::createIceCheckListsAndParseIceAttributes (const SalMediaDescripti
}
if (!iceRestarted) {
bool_t losingPairsAdded = false;
for (int j = 0; j < SAL_MEDIA_DESCRIPTION_MAX_ICE_CANDIDATES; j++) {
for (int j = 0; j < SAL_MEDIA_DESCRIPTION_MAX_ICE_REMOTE_CANDIDATES; j++) {
const SalIceRemoteCandidate *remoteCandidate = &stream->ice_remote_candidates[j];
const char *addr = nullptr;
int port = 0;