From 36e402b93b72b42683d5c96d0ca543d339d5c9b6 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 23 Jul 2025 08:17:07 -0400 Subject: [PATCH] MT#55283 fix num_ports not being set Change-Id: I98b11a011063ae334118d977adc7b06fb9bff9c3 (cherry picked from commit 8f13d83d2b74d9cd9116cc24d0d0339477755077) --- daemon/call.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/call.c b/daemon/call.c index 146851a33..6d064b5c2 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -887,11 +887,12 @@ static struct endpoint_map *__get_endpoint_map(struct call_media *media, unsigne else em->wildcard = 1; em->logical_intf = media->logical_intf; - em->num_ports = num_ports; t_queue_init(&em->intf_sfds); t_queue_push_tail(&media->endpoint_maps, em); } + em->num_ports = num_ports; + if (num_ports > 16) return NULL; if (get_consecutive_ports(&intf_sockets, num_ports, want_interfaces, media))