Change .8s port name restriction to .15s, modern tcp port
have longer names, check /etc/services. kerberos_master triggers this bug: it is undistiguishable from simple kerberos for .8s
This commit is contained in:
parent
7bbaffb06a
commit
6ef4e82f0f
@ -445,7 +445,7 @@ inetprint(in, port, proto)
|
|||||||
if (!nflag && port)
|
if (!nflag && port)
|
||||||
sp = getservbyport((int)port, proto);
|
sp = getservbyport((int)port, proto);
|
||||||
if (sp || port == 0)
|
if (sp || port == 0)
|
||||||
sprintf(cp, "%.8s", sp ? sp->s_name : "*");
|
sprintf(cp, "%.15s", sp ? sp->s_name : "*");
|
||||||
else
|
else
|
||||||
sprintf(cp, "%d", ntohs((u_short)port));
|
sprintf(cp, "%d", ntohs((u_short)port));
|
||||||
width = Aflag ? 18 : 22;
|
width = Aflag ? 18 : 22;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user