Skip to content

Commit 9e4d2f6

Browse files
committed
Merge branch 'jc/daemon-no-ipv6-for-2.4.1'
"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
2 parents a0c0c2e + d358f77 commit 9e4d2f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

daemon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ static void lookup_hostname(struct hostinfo *hi)
633633
char **ap;
634634
static char addrbuf[HOST_NAME_MAX + 1];
635635

636-
hent = gethostbyname(hostname.buf);
636+
hent = gethostbyname(hi->hostname.buf);
637637
if (hent) {
638638
ap = hent->h_addr_list;
639639
memset(&sa, 0, sizeof sa);

0 commit comments

Comments
 (0)