{"thread":{"id":"2648","subject":"[PATCH] Fixed git:// IPv4 address problem when compiled with -DNO_IPV6.","startedAt":"2005-11-22T13:54:23Z","lastAt":"2005-11-22T13:54:23Z","messageCount":1,"participants":["Paul Serice"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"12537","messageId":"4383230F.7060007@serice.net","threadId":"2648","inReplyTo":null,"subject":"[PATCH] Fixed git:// IPv4 address problem when compiled with -DNO_IPV6.","fromName":"Paul Serice","fromEmail":"paul@serice.net","sentAt":"2005-11-22T13:54:23Z","receivedAt":"2005-11-22T13:54:23Z","isPatch":true,"sender":{"key":"paul@serice.net","avatar":null},"body":"Failure to dereference a pointer caused incorrect initialization of\nthe IPv4 address when calling connect() when compiled with -DNO_IPV6.\n\nWith this patch and yesterday's patch for git-daemon, it should now be\npossible to use the native git protocol for both the client and server\non Cygwin.\n\nSigned-off-by: Paul Serice <paul@serice.net>\n\n\n---\n\n connect.c |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\napplies-to: 5bc7f67c535dbbbb9340285c82226a8dd6e4afec\nb16765657940be2f4d14e8f1e65d35e4b32bea0f\ndiff --git a/connect.c b/connect.c\nindex 7a417e5..93f6f80 100644\n--- a/connect.c\n+++ b/connect.c\n@@ -427,7 +427,7 @@ static int git_tcp_connect(int fd[2], co\n \t\tmemset(&sa, 0, sizeof sa);\n \t\tsa.sin_family = he->h_addrtype;\n \t\tsa.sin_port = htons(nport);\n-\t\tmemcpy(&sa.sin_addr, ap, he->h_length);\n+\t\tmemcpy(&sa.sin_addr, *ap, he->h_length);\n \n \t\tif (connect(sockfd, (struct sockaddr *)&sa, sizeof sa) < 0) {\n \t\t\tclose(sockfd);\n---\n0.99.9.GIT\n"}]}