summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-05-11 14:23:53 -0700
committerJunio C Hamano <gitster@pobox.com>2015-05-11 14:23:53 -0700
commit9e4d2f6d45ef46e5774bbf752786ca3b9a4142a5 (patch)
treeda420b5c0f146d8420c5e1ddf4e77e023fbba50f
parenta0c0c2e5c29f54c69fa6735aca6ed3079f5f4190 (diff)
parentd358f771e3a0e78ea8ebed7edf48a12a7620c813 (diff)
downloadgit-9e4d2f6d45ef46e5774bbf752786ca3b9a4142a5.tar.gz
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
-rw-r--r--daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon.c b/daemon.c
index ac2bc852d1..d3d3e433e3 100644
--- a/daemon.c
+++ b/daemon.c
@@ -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);