mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-13 14:40:22 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=311426
@ -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
Block a user