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 014e5e251..9fd3d2f86 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 | |||
140 | /* Code which used "*" for INADDR_ANY is removed: it's ambiguous in IPv6, | 140 | /* Code which used "*" for INADDR_ANY is removed: it's ambiguous in IPv6, |
141 | * while "0.0.0.0" is not. */ | 141 | * while "0.0.0.0" is not. */ |
142 | 142 | ||
143 | host = numeric ? xmalloc_sockaddr2dotted_noport(addr, salen) | 143 | host = numeric ? xmalloc_sockaddr2dotted_noport(addr) |
144 | : xmalloc_sockaddr2host_noport(addr, salen); | 144 | : xmalloc_sockaddr2host_noport(addr); |
145 | 145 | ||
146 | host_port = xasprintf("%s:%s", host, get_sname(htons(port), proto, numeric)); | 146 | host_port = xasprintf("%s:%s", host, get_sname(htons(port), proto, numeric)); |
147 | free(host); | 147 | free(host); |