From 10b4302edbdbe6f9c08101c46b3d0be490939dde Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 16 Jul 2026 09:17:55 -0400 Subject: [PATCH] MT#55283 add missing socket reset flag We use `family == NULL` as test for the socket being open in several places, and expect it to match the familt of the addresses. Set it to zero to make it consistent. Change-Id: Ide2b41e84fc27b5f47f579dcf4ab2ec2f6b0a37e (cherry picked from commit 16de9688d65add5f4da6cdba47450a7738d7414d) (cherry picked from commit e299e941b209fedb1d87f9c86b6273d4c806fe42) --- lib/socket.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/socket.c b/lib/socket.c index b7f71e6e9..065ca133c 100644 --- a/lib/socket.c +++ b/lib/socket.c @@ -880,6 +880,7 @@ bool reset_socket(socket_t *r) { return false; r->fd = -1; + r->family = NULL; ZERO(r->local); ZERO(r->remote);