summaryrefslogtreecommitdiff
path: root/util/net_help.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2015-04-26 11:23:26 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2015-04-26 11:23:26 +0000
commitd3348d437fb0408bc24892ebd0b035686c294705 (patch)
tree01c1d94467622a175fad10cd34a2f6f05d32c1b7 /util/net_help.c
parent54dd3272da3f4a5fda7dd6ac359b7cf68e21a796 (diff)
Diffstat (limited to 'util/net_help.c')
-rw-r--r--util/net_help.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/util/net_help.c b/util/net_help.c
index 335ee7499e7db..e2b7c38783ab7 100644
--- a/util/net_help.c
+++ b/util/net_help.c
@@ -156,7 +156,12 @@ log_addr(enum verbosity_value v, const char* str,
case AF_INET6: family="ip6";
sinaddr = &((struct sockaddr_in6*)addr)->sin6_addr;
break;
- case AF_LOCAL: family="local"; break;
+ case AF_LOCAL:
+ dest[0]=0;
+ (void)inet_ntop(af, sinaddr, dest,
+ (socklen_t)sizeof(dest));
+ verbose(v, "%s local %s", str, dest);
+ return; /* do not continue and try to get port */
default: break;
}
if(inet_ntop(af, sinaddr, dest, (socklen_t)sizeof(dest)) == 0) {