summaryrefslogtreecommitdiff
path: root/daemon.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2015-05-11 14:23:53 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-05-11 14:23:53 -0700
commit9e4d2f6d45ef46e5774bbf752786ca3b9a4142a5 (patch)
treeda420b5c0f146d8420c5e1ddf4e77e023fbba50f /daemon.c
parentMerge branch 'jn/clean-use-error-not-fprintf-on-stderr' (diff)
parentdaemon: unbreak NO_IPV6 build regression (diff)
downloadtgif-9e4d2f6d45ef46e5774bbf752786ca3b9a4142a5.tar.xz
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
Diffstat (limited to 'daemon.c')
-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);