mirror of
https://github.com/curl/curl.git
synced 2026-07-22 22:37:16 +03:00
Avoid warning "comparison of unsigned expression < 0 is always false"
This commit is contained in:
parent
73ebb0edde
commit
d46de5ab8b
1 changed files with 1 additions and 1 deletions
|
|
@ -238,7 +238,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
|
|||
|
||||
/* see if we have an IPv6 stack */
|
||||
s = socket(PF_INET6, SOCK_DGRAM, 0);
|
||||
if (s < 0) {
|
||||
if (s != CURL_SOCKET_BAD) {
|
||||
/* Some non-IPv6 stacks have been found to make very slow name resolves
|
||||
* when PF_UNSPEC is used, so thus we switch to a mere PF_INET lookup if
|
||||
* the stack seems to be a non-ipv6 one. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue