diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-08-01 14:45:02 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-08-01 14:45:02 -0700 |
commit | 259bcfb6b987021be592ed640253215bcbbf6d7d (patch) | |
tree | ee8474ba2caade3d32d3f096aaa007d9dd7f9c83 /connect.c | |
parent | 4e2e6ce45047fe2713546127f3d1ded576e1bf7e (diff) | |
parent | 3503b8d0da61d920ebd9294fd6a9a0f758328fd3 (diff) | |
download | git-259bcfb6b987021be592ed640253215bcbbf6d7d.tar.gz |
Merge branch 'maint'
* 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) || |