summaryrefslogtreecommitdiff
path: root/connect.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-08-01 10:49:40 -0700
committerJunio C Hamano <gitster@pobox.com>2011-08-01 10:49:40 -0700
commit9353e09afa21b24fa356f960300e1c0a1567aa72 (patch)
tree19e5cc0dce8dc56734ccbd2aa97f01aba3df8dbc /connect.c
parentb35acb53458d0f99ba2400b902980b35e5acc2d3 (diff)
parente08afecd7fe04b519b72f136c4a24b151c748f49 (diff)
downloadgit-9353e09afa21b24fa356f960300e1c0a1567aa72.tar.gz
Merge branch 'maint' into ef/ipv4-connect-error-report
* maint: connect: correctly number ipv6 network adapter
Diffstat (limited to 'connect.c')
-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) ||