Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
name-rev: fix off-by-one error in --stdin.
[gitweb.git]
/
connect.c
diff --git
a/connect.c
b/connect.c
index 7a417e5a73f3228af00d2e143b16e24004083341..93f6f80d3e8c5f1592353b6feadb9de2c768b649 100644
(file)
--- a/
connect.c
+++ b/
connect.c
@@
-427,7
+427,7
@@
static int git_tcp_connect(int fd[2], const char *prog, char *host, char *path)
memset(&sa, 0, sizeof sa);
sa.sin_family = he->h_addrtype;
sa.sin_port = htons(nport);
- memcpy(&sa.sin_addr, ap, he->h_length);
+ memcpy(&sa.sin_addr,
*
ap, he->h_length);
if (connect(sockfd, (struct sockaddr *)&sa, sizeof sa) < 0) {
close(sockfd);