Commit e39ad66c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

An XXX comment



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5124 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 0d54b705
......@@ -72,6 +72,10 @@ TCP_name(const struct sockaddr *addr, unsigned l, char *abuf, unsigned alen,
i = getnameinfo(addr, l, abuf, alen, pbuf, plen,
NI_NUMERICHOST | NI_NUMERICSERV);
if (i) {
/*
* XXX this printf is shitty, but we may not have space
* for the gai_strerror in the bufffer :-(
*/
printf("getnameinfo = %d %s\n", i, gai_strerror(i));
strlcpy(abuf, "Conversion", alen);
strlcpy(pbuf, "Failed", plen);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment