aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/showconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/showconf.c')
-rw-r--r--src/tools/showconf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/showconf.c b/src/tools/showconf.c
index adc3789..2843910 100644
--- a/src/tools/showconf.c
+++ b/src/tools/showconf.c
@@ -72,6 +72,7 @@ int showconf_main(int argc, char *argv[])
char host[4096 + 1];
char service[512 + 1];
socklen_t addr_len = 0;
+
if (peer->endpoint.addr.sa_family == AF_INET)
addr_len = sizeof(struct sockaddr_in);
else if (peer->endpoint.addr.sa_family == AF_INET6)