Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'maint'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 1 Aug 2011 21:45:02 +0000
(14:45 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 1 Aug 2011 21:45:02 +0000
(14:45 -0700)
* maint:
connect: correctly number ipv6 network adapter
connect.c
patch
|
blob
|
history
raw
(from parent 1:
4e2e6ce
)
diff --git
a/connect.c
b/connect.c
index 844107e2954f6cb8354990d69c6568b9d3091470..d2ce57f850fa6d0a6de04f6f714dec487ff9f1ed 100644
(file)
--- 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) ||