mirror of
https://github.com/opnsense/src.git
synced 2026-04-27 09:06:49 -04:00
Use NG_HOOKSIZ instead of the deprecated (NG_HOOKLEN + 1)
This commit is contained in:
parent
c0344cc19f
commit
bac74dea2f
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ ngh_rcvmsg(node_p node, item_p item, hook_p lasthook)
|
|||
case NGM_HOLE_CLR_STATS:
|
||||
case NGM_HOLE_GETCLR_STATS:
|
||||
/* Sanity check. */
|
||||
if (msg->header.arglen != NG_HOOKLEN + 1) {
|
||||
if (msg->header.arglen != NG_HOOKSIZ) {
|
||||
error = EINVAL;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue