Browse Source

MT#63317 fix possible booboo

Change-Id: I98926165e834eba01ef702eda1467521dca2b713
pull/2018/head
Richard Fuchs 2 months ago
parent
commit
2ba7bd1041
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/ice.c

+ 1
- 1
daemon/ice.c View File

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