Use NG_HOOKSIZ instead of the deprecated (NG_HOOKLEN + 1)
This commit is contained in:
parent
5354e71f8f
commit
fc959824c1
@ -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 New Issue
Block a user