Skip to content

Commit

Permalink
Merge branch 'jc/daemon-no-ipv6-for-2.4.1' into maint
Browse files Browse the repository at this point in the history
"git daemon" fails to build from the source under NO_IPV6
configuration (regression in 2.4).

* jc/daemon-no-ipv6-for-2.4.1:
  daemon: unbreak NO_IPV6 build regression
  • Loading branch information
Junio C Hamano committed May 26, 2015
2 parents cb9ec8e + d358f77 commit 6fd5836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ static void lookup_hostname(struct hostinfo *hi)
char **ap;
static char addrbuf[HOST_NAME_MAX + 1];

hent = gethostbyname(hostname.buf);
hent = gethostbyname(hi->hostname.buf);
if (hent) {
ap = hent->h_addr_list;
memset(&sa, 0, sizeof sa);
Expand Down

0 comments on commit 6fd5836

Please sign in to comment.