summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2011-08-01 10:49:40 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-08-01 10:49:40 -0700
commit9353e09afa21b24fa356f960300e1c0a1567aa72 (patch)
tree19e5cc0dce8dc56734ccbd2aa97f01aba3df8dbc
parentMerge branch 'maint' (diff)
parentconnect: correctly number ipv6 network adapter (diff)
downloadtgif-9353e09afa21b24fa356f960300e1c0a1567aa72.tar.xz
Merge branch 'maint' into ef/ipv4-connect-error-report
* maint: connect: correctly number ipv6 network adapter
-rw-r--r--connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/connect.c b/connect.c
index 844107e295..d2ce57f850 100644
--- a/connect.c
+++ b/connect.c
@@ -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) ||