Merge branch 'jc/daemon-no-ipv6-for-2.4.1' into maint
"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
This commit is contained in:
commit
6fd58363a4
2
daemon.c
2
daemon.c
@ -633,7 +633,7 @@ static void lookup_hostname(struct hostinfo *hi)
|
|||||||
char **ap;
|
char **ap;
|
||||||
static char addrbuf[HOST_NAME_MAX + 1];
|
static char addrbuf[HOST_NAME_MAX + 1];
|
||||||
|
|
||||||
hent = gethostbyname(hostname.buf);
|
hent = gethostbyname(hi->hostname.buf);
|
||||||
if (hent) {
|
if (hent) {
|
||||||
ap = hent->h_addr_list;
|
ap = hent->h_addr_list;
|
||||||
memset(&sa, 0, sizeof sa);
|
memset(&sa, 0, sizeof sa);
|
||||||
|
Loading…
Reference in New Issue
Block a user