Call CCP protocol -1 ``none''

This commit is contained in:
Brian Somers 2001-11-03 19:29:30 +00:00
parent 4ab54bbe12
commit 9ea6970784

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