Skip to content

Commit 9318627

Browse files
committed
lib/fetch: don't abort connect(2) attempts on EINVAL
1 parent b5954c8 commit 9318627

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/fetch/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ happy_eyeballs_connect(struct addrinfo *res0, int verbose)
608608
unreach |= UNREACH_IPV6;
609609
}
610610
continue;
611-
} else if (errno == EADDRNOTAVAIL) {
611+
} else if (errno == EADDRNOTAVAIL || errno == EINVAL) {
612612
err = errno;
613613
close(sd);
614614
continue;

0 commit comments

Comments
 (0)