From 10702c5f36bd3fa80e0944e972248e1513a1cea4 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Fri, 16 Feb 2018 14:40:57 +0100 Subject: [PATCH] fix table overflow. --- coreapi/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/misc.c b/coreapi/misc.c index fcfaeabea..2486410b4 100644 --- a/coreapi/misc.c +++ b/coreapi/misc.c @@ -1768,7 +1768,7 @@ static void _create_ice_check_lists_and_parse_ice_attributes(LinphoneCall *call, } if (ice_restarted == FALSE) { bool_t losing_pairs_added = FALSE; - 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]; addr = NULL; port = 0;