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 /connect.c | |
parent | b35acb53458d0f99ba2400b902980b35e5acc2d3 (diff) | |
parent | e08afecd7fe04b519b72f136c4a24b151c748f49 (diff) | |
download | git-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.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) || |