diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-08-01 10:49:40 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-08-01 10:49:40 -0700 |
commit | 9353e09afa21b24fa356f960300e1c0a1567aa72 (patch) | |
tree | 19e5cc0dce8dc56734ccbd2aa97f01aba3df8dbc | |
parent | Merge branch 'maint' (diff) | |
parent | connect: correctly number ipv6 network adapter (diff) | |
download | tgif-9353e09afa21b24fa356f960300e1c0a1567aa72.tar.xz |
Merge branch 'maint' into ef/ipv4-connect-error-report
* maint:
connect: correctly number ipv6 network adapter
-rw-r--r-- | connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -217,7 +217,7 @@ static int git_tcp_connect_sock(char *host, int flags) if (flags & CONNECT_VERBOSE) 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, ai->ai_socktype, ai->ai_protocol); if ((sockfd < 0) || |