modules: invert memcmp logic

memcmp returns 0 when the memory is equal. This function is not used
currently.
This commit is contained in:
Wim Taymans 2026-05-12 09:18:56 +02:00
parent 9843ee858f
commit 0c193b2b82

View file

@ -191,7 +191,7 @@ static inline bool pw_net_addr_is_any(struct sockaddr_storage *addr)
return sa->sin_addr.s_addr == INADDR_ANY;
} else if (addr->ss_family == AF_INET6) {
struct sockaddr_in6 *sa = (struct sockaddr_in6*)addr;
return memcmp(&sa->sin6_addr, &in6addr_any, sizeof(sa->sin6_addr));
return memcmp(&sa->sin6_addr, &in6addr_any, sizeof(sa->sin6_addr)) == 0;
}
return false;
}