mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
corrected mistake
This commit is contained in:
parent
4aac210a83
commit
92179ff990
@ -204,7 +204,7 @@ bool Curl_ipvalid(struct SessionHandle *data)
|
|||||||
if(data->set.ip_version == CURL_IPRESOLVE_V6) {
|
if(data->set.ip_version == CURL_IPRESOLVE_V6) {
|
||||||
/* see if we have an IPv6 stack */
|
/* see if we have an IPv6 stack */
|
||||||
curl_socket_t s = socket(PF_INET6, SOCK_DGRAM, 0);
|
curl_socket_t s = socket(PF_INET6, SOCK_DGRAM, 0);
|
||||||
if (s != CURL_SOCKET_BAD)
|
if (s == CURL_SOCKET_BAD)
|
||||||
/* an ipv6 address was requested and we can't get/use one */
|
/* an ipv6 address was requested and we can't get/use one */
|
||||||
return FALSE;
|
return FALSE;
|
||||||
sclose(s);
|
sclose(s);
|
||||||
|
Loading…
Reference in New Issue
Block a user