lib/fetch: don't abort connect(2) attempts on EINVAL

This commit is contained in:
Duncan Overbruck 2022-07-19 14:50:29 +02:00
parent b5954c80db
commit 93186276ee
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35

View File

@ -608,7 +608,7 @@ happy_eyeballs_connect(struct addrinfo *res0, int verbose)
unreach |= UNREACH_IPV6;
}
continue;
} else if (errno == EADDRNOTAVAIL) {
} else if (errno == EADDRNOTAVAIL || errno == EINVAL) {
err = errno;
close(sd);
continue;