1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Call CCP protocol -1 ``none''

This commit is contained in:
Brian Somers 2001-11-03 19:29:30 +00:00
parent 4ab54bbe12
commit 9ea6970784
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85985

View File

@ -134,8 +134,11 @@ protoname(int proto)
};
if (proto < 0 || proto > sizeof cftypes / sizeof *cftypes ||
cftypes[proto] == NULL)
cftypes[proto] == NULL) {
if (proto == -1)
return "none";
return HexStr(proto, NULL, 0);
}
return cftypes[proto];
}