From 8a336839b5c3bd6820d05cc21dcaa9be5d78bd66 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Fri, 16 Feb 2018 16:04:44 +0100 Subject: [PATCH] fix table overflow --- 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 bca4f7cdb..51874850f 100644 --- a/src/nat/ice-agent.cpp +++ b/src/nat/ice-agent.cpp @@ -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;