From 0968947e696563ece313963b290eab0aeacd5167 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 11 Aug 2026 07:50:17 -0400 Subject: [PATCH] MT#55283 don't do ICE checks on closed sockets The primary pair selection already checks this, but a retransmit can still trigger a check on a socket that has since been closed. Closes #2154 Change-Id: I8308693e7269bfa9dcfcb24daf6863669c065139 (cherry picked from commit c22d724aa906238e450e9e02ee51e3bc27a1001c) (cherry picked from commit ace3bf3516bc53dfc79492114de24bc8b50fd9de) --- daemon/ice.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/ice.c b/daemon/ice.c index 7796306f3..f51a0b00d 100644 --- a/daemon/ice.c +++ b/daemon/ice.c @@ -760,6 +760,9 @@ static void __do_ice_check(struct ice_candidate_pair *pair) { if (!ag->pwd[0].s) return; + if (!sfd->socket.family) + return; + prio = ice_priority(ICT_PRFLX, pair->local_intf->unique_id, pair->remote_candidate->component_id);