From afce798034ae51704818d9bfb47aa87449da2637 Mon Sep 17 00:00:00 2001 From: John Burke Date: Sat, 2 Aug 2025 17:14:45 -0500 Subject: [PATCH] MT#55283 early exit heuristic endpoint learning if endpoint matches SDP Closes #1987 Change-Id: I906a8b1538d75356ea1b0f43d9b0ff5b37dbda52 --- daemon/media_socket.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon/media_socket.c b/daemon/media_socket.c index 2f77d4b68..f15fed672 100644 --- a/daemon/media_socket.c +++ b/daemon/media_socket.c @@ -2563,6 +2563,10 @@ static bool media_packet_address_check(struct packet_handler_ctx *phc) break; } + // confirm endpoint, if matches address advertised in SDP + if (idx == 0) + goto confirm_now; + // finally, if there has been a better match and if strict-source is set, // drop this packet if (PS_ISSET(phc->mp.stream, STRICT_SOURCE) && matched_idx < idx) {