aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/server/resolve.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/server/resolve.c b/tests/server/resolve.c
index 3092b8cbc..7b4af2b11 100644
--- a/tests/server/resolve.c
+++ b/tests/server/resolve.c
@@ -131,8 +131,8 @@ int main(int argc, char *argv[])
else {
#ifdef ENABLE_IPV6
/* Check that the system has IPv6 enabled before checking the resolver */
- int s = socket(PF_INET6, SOCK_DGRAM, 0);
- if(s == -1)
+ curl_socket_t s = socket(PF_INET6, SOCK_DGRAM, 0);
+ if(s == CURL_SOCKET_BAD)
/* an ipv6 address was requested and we can't get/use one */
rc = -1;
else {