forked from wolfSSL/wolfssl
Fix warning with pointer compare to zero for IPV6 peer == INADDR_ANY
in test.h. Fixes issue #1350.
This commit is contained in:
@ -695,8 +695,9 @@ static INLINE void build_addr(SOCKADDR_IN_T* addr, const char* peer,
|
|||||||
#else
|
#else
|
||||||
addr->sin6_family = AF_INET_V;
|
addr->sin6_family = AF_INET_V;
|
||||||
addr->sin6_port = XHTONS(port);
|
addr->sin6_port = XHTONS(port);
|
||||||
if (peer == INADDR_ANY)
|
if ((size_t)peer != INADDR_ANY) {
|
||||||
addr->sin6_addr = in6addr_any;
|
addr->sin6_addr = in6addr_any;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
#ifdef HAVE_GETADDRINFO
|
#ifdef HAVE_GETADDRINFO
|
||||||
struct addrinfo hints;
|
struct addrinfo hints;
|
||||||
|
Reference in New Issue
Block a user