diff options
Diffstat (limited to 'networking/netstat.c')
-rw-r--r-- | networking/netstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/netstat.c b/networking/netstat.c index 014e5e2..9fd3d2f 100644 --- a/networking/netstat.c +++ b/networking/netstat.c @@ -140,8 +140,8 @@ static char *ip_port_str(struct sockaddr *addr, int port, const char *proto, int /* Code which used "*" for INADDR_ANY is removed: it's ambiguous in IPv6, * while "0.0.0.0" is not. */ - host = numeric ? xmalloc_sockaddr2dotted_noport(addr, salen) - : xmalloc_sockaddr2host_noport(addr, salen); + host = numeric ? xmalloc_sockaddr2dotted_noport(addr) + : xmalloc_sockaddr2host_noport(addr); host_port = xasprintf("%s:%s", host, get_sname(htons(port), proto, numeric)); free(host); |