From 4df4d193d2a878c99c4e5576c08fccca1572b6d0 Mon Sep 17 00:00:00 2001 From: "[anp/hsw]" Date: Fri, 16 Aug 2024 09:50:26 +0700 Subject: [PATCH] fixing -Wstrict-aliasing (try 2) --- tpws/helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpws/helpers.c b/tpws/helpers.c index a5363db..8d02347 100644 --- a/tpws/helpers.c +++ b/tpws/helpers.c @@ -172,7 +172,7 @@ bool is_localnet(const struct sockaddr *a) (a->sa_family==AF_INET6 && (IN6_IS_ADDR_LOOPBACK(((struct sockaddr_in6 *)a)->sin6_addr.s6_addr) || IN6_IS_ADDR_UNSPECIFIED(((struct sockaddr_in6 *)a)->sin6_addr.s6_addr) || (IN6_IS_ADDR_V4MAPPED(((struct sockaddr_in6 *)a)->sin6_addr.s6_addr) && (IN_LOOPBACK(IN6_EXTRACT_MAP4(((struct sockaddr_in6*)a)->sin6_addr.s6_addr)) || - INADDR_ANY == IN6_EXTRACT_MAP4(((struct sockaddr_in6*)a)->sin6_addr.s6_addr))))); + INADDR_ANY == IN6_EXTRACT_MAP4(((struct sockaddr_in6*)a)->sin6_addr.s6_addr))))); } bool is_linklocal(const struct sockaddr_in6 *a) {