Call CCP protocol -1 ``none''

This commit is contained in:
brian 2001-11-03 19:29:30 +00:00
parent e4e8866034
commit 0c094f30d4

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];
}