Skip to content

Commit 259bcfb

Browse files
committed
Merge branch 'maint'
* maint: connect: correctly number ipv6 network adapter
2 parents 4e2e6ce + 3503b8d commit 259bcfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ static int git_tcp_connect_sock(char *host, int flags)
217217
if (flags & CONNECT_VERBOSE)
218218
fprintf(stderr, "done.\nConnecting to %s (port %s) ... ", host, port);
219219

220-
for (ai0 = ai; ai; ai = ai->ai_next) {
220+
for (ai0 = ai; ai; ai = ai->ai_next, cnt++) {
221221
sockfd = socket(ai->ai_family,
222222
ai->ai_socktype, ai->ai_protocol);
223223
if ((sockfd < 0) ||

0 commit comments

Comments
 (0)