Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Enhanced sq_quote()
[gitweb.git]
/
connect.c
diff --git
a/connect.c
b/connect.c
index 39d320ce280f4448b52865cc5386acc2099744c7..b157cf1cc718bbd7b8f4598b2dcb3a7ba92bb8e3 100644
(file)
--- a/
connect.c
+++ b/
connect.c
@@
-397,7
+397,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 =
nport
;
+ sa.sin_port =
htons(nport)
;
memcpy(&sa.sin_addr, ap, he->h_length);
if (connect(sockfd, (struct sockaddr *)&sa, sizeof sa) < 0) {