From dda700b9e1edfc200c683bd59c15a08674a8f35a Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Tue, 21 Jul 2026 11:11:55 +0200 Subject: [PATCH] MT#55283 call: add a socket family guard 16de9688d65add resets the `socket.family` to NULL, that makes the direct appeal to the corresponding object unsafe. E.g. `ps->selected_sfd->socket.family->name` when filling the streams. Add a simply guard and log `none` in case the ip family is NULL. Change-Id: I7ad7399e32e5d0ffb2fcc919822d05760fdc7421 (cherry picked from commit 05817bad1322eca806c7531460a958814624b698) (cherry picked from commit 0643d7571b7c9d8803be120af84668a956546179) --- daemon/call.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/daemon/call.c b/daemon/call.c index 1cc67a21b..a3513661d 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -1048,9 +1048,14 @@ static void __fill_stream(struct packet_stream *ps, const struct endpoint *epp, && ep.address.family != ps->selected_sfd->socket.family) { if (ep.address.family && !is_trickle_ice_address(&ep)) + { + const char *socket_family = ps->selected_sfd->socket.family + ? ps->selected_sfd->socket.family->name : "none"; + ilog(LOG_WARN, "Ignoring updated remote endpoint %s%s%s as the local " "socket is %s", FMT_M(endpoint_print_buf(&ep)), - ps->selected_sfd->socket.family->name); + socket_family); + } return; }