From 2ba7bd10419fa3794f6e9a4e596a47711351b1bc Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 16 Oct 2025 10:48:05 -0400 Subject: [PATCH] MT#63317 fix possible booboo Change-Id: I98926165e834eba01ef702eda1467521dca2b713 --- daemon/ice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/ice.c b/daemon/ice.c index 359582585..4390136e2 100644 --- a/daemon/ice.c +++ b/daemon/ice.c @@ -489,7 +489,7 @@ void ice_update(struct ice_agent *ag, struct stream_params *sp, bool allow_reset /* get our component streams */ ZERO(components); comps = 0; - for (__auto_type l = media->streams.head; l; l = l->next) + for (__auto_type l = media->streams.head; l && comps < MAX_COMPONENTS; l = l->next) components[comps++] = l->data; if (comps == 2 && (MEDIA_ISSET(media, RTCP_MUX) || !proto_is_rtp(media->protocol))) components[1] = NULL;