|
|
@ -217,7 +217,7 @@ static int git_tcp_connect_sock(char *host, int flags) |
|
|
|
if (flags & CONNECT_VERBOSE) |
|
|
|
if (flags & CONNECT_VERBOSE) |
|
|
|
fprintf(stderr, "done.\nConnecting to %s (port %s) ... ", host, port); |
|
|
|
fprintf(stderr, "done.\nConnecting to %s (port %s) ... ", host, port); |
|
|
|
|
|
|
|
|
|
|
|
for (ai0 = ai; ai; ai = ai->ai_next) { |
|
|
|
for (ai0 = ai; ai; ai = ai->ai_next, cnt++) { |
|
|
|
sockfd = socket(ai->ai_family, |
|
|
|
sockfd = socket(ai->ai_family, |
|
|
|
ai->ai_socktype, ai->ai_protocol); |
|
|
|
ai->ai_socktype, ai->ai_protocol); |
|
|
|
if ((sockfd < 0) || |
|
|
|
if ((sockfd < 0) || |
|
|
|