diff options
author | julian <julian@FreeBSD.org> | 2004-05-24 20:41:40 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2004-05-24 20:41:40 +0000 |
commit | 0c0aafcdd19d2b9360f8660a97983d86f08c96e2 (patch) | |
tree | 057aee35ab3d68f43b688299f06fb435a61bb4fa | |
parent | f3d19bd9b6da151705497639d50cd33328694465 (diff) | |
download | FreeBSD-src-0c0aafcdd19d2b9360f8660a97983d86f08c96e2.zip FreeBSD-src-0c0aafcdd19d2b9360f8660a97983d86f08c96e2.tar.gz |
Use NG_HOOKSIZ instead of the deprecated (NG_HOOKLEN + 1)
-rw-r--r-- | sys/netgraph/ng_hole.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_hole.c b/sys/netgraph/ng_hole.c index b1fc95d..923ed6d 100644 --- a/sys/netgraph/ng_hole.c +++ b/sys/netgraph/ng_hole.c @@ -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; } |