Skip to content

Commit 47be26d

Browse files
committed
Merge branch 'ep/ident-with-getaddrinfo'
A fix-up for recent topic. * ep/ident-with-getaddrinfo: ident: fix undefined variable when NO_IPV6 is set
2 parents a899d50 + 58d29ec commit 47be26d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ident.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static int canonical_name(const char *host, struct strbuf *out)
8686
freeaddrinfo(ai);
8787
}
8888
#else
89-
struct hostent *he = gethostbyname(buf);
89+
struct hostent *he = gethostbyname(host);
9090
if (he && strchr(he->h_name, '.')) {
9191
strbuf_addstr(out, he->h_name);
9292
status = 0;

0 commit comments

Comments
 (0)