MT#63317 fix possible booboo

Change-Id: I98926165e834eba01ef702eda1467521dca2b713
pull/2018/head
Richard Fuchs 3 months ago
parent e121a1e289
commit 2ba7bd1041

@ -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;

Loading…
Cancel
Save