When displaying netstat details with libxo in JSON
or XML modes, the value conversion for tcp6 and udp6 port numbers drops last digit. PR: 215682 MFC after: 3 days
This commit is contained in:
parent
60c2226f89
commit
f03f398cda
|
@ -1290,7 +1290,7 @@ inet6print(const char *container, struct in6_addr *in6, int port,
|
|||
|
||||
xo_emit("{d:target/%-*.*s} ", width, width, line);
|
||||
|
||||
plen = strlen(cp) - 1;
|
||||
plen = strlen(cp);
|
||||
alen--;
|
||||
xo_emit("{e:address/%*.*s}{e:port/%*.*s}", alen, alen, line, plen,
|
||||
plen, cp);
|
||||
|
|
Loading…
Reference in New Issue