Description: Compare the IPv6 address field when applying the localhost timeout The existing guard compares the sockaddr_in6 header to an in6_addr, so it does not recognize ::1 and never sets the short timeout for IPv6 loopback. Compare sin6_addr instead, preserving the IPv4 test and the existing timeout. Origin: other, locally prepared candidate correction Bug-Debian: https://bugs.debian.org/1087173 Last-Update: 2026-11-07 --- a/Programs/brlapi_client.c +++ b/Programs/brlapi_client.c @@ -935,7 +935,7 @@ && (ntohl(((struct sockaddr_in *)cur->ai_addr)->sin_addr.s_addr) & IN_CLASSA_NET) == (INADDR_LOOPBACK & IN_CLASSA_NET)) || (cur->ai_family == AF_INET6 - && !memcmp(cur->ai_addr, &ip6_localhost, sizeof(ip6_localhost)))) { + && !memcmp(&((struct sockaddr_in6 *)cur->ai_addr)->sin6_addr, &ip6_localhost, sizeof(ip6_localhost)))) { /* Local connection, it should be fast, otherwise it means we have a * firewall blocking us, and then better not wait unnecessarily. */ struct timeval tv = { .tv_usec = 100000 };