From 1cdc1ff07f67746c6ac627eddd97819783cc73cf Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Thu, 12 Apr 2018 17:41:55 +0200 Subject: [PATCH] Retrofit of commit 2b3d4a from master branch, fixing table overflow in ICE code. --- src/nat/ice-agent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nat/ice-agent.cpp b/src/nat/ice-agent.cpp index cbc74cd4a..167acc8b9 100644 --- a/src/nat/ice-agent.cpp +++ b/src/nat/ice-agent.cpp @@ -762,7 +762,7 @@ bool IceAgent::checkIceReinviteNeedsDeferedResponse(SalMediaDescription *md){ 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;