mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Call CCP protocol -1 ``none''
This commit is contained in:
parent
4ab54bbe12
commit
9ea6970784
1 changed files with 4 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue