diff options
author | mav <mav@FreeBSD.org> | 2009-05-13 02:26:34 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2009-05-13 02:26:34 +0000 |
commit | 41798f5f08cc221aab319be692139a0058849182 (patch) | |
tree | 884c73b1448f35aad53a95173e6391afe715a1d4 /sys/netgraph | |
parent | bf0fcf90723a7ee820acb5f63ffa9bef422d5a4c (diff) | |
download | FreeBSD-src-41798f5f08cc221aab319be692139a0058849182.zip FreeBSD-src-41798f5f08cc221aab319be692139a0058849182.tar.gz |
Fix copy-paste bug in NGM_NETFLOW_SETCONFIG argument size verification.
PR: kern/134220
Submitted by: Eugene Mychlo
MFC after: 1 week
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/netflow/ng_netflow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/netflow/ng_netflow.c b/sys/netgraph/netflow/ng_netflow.c index d43c976..cacbd72 100644 --- a/sys/netgraph/netflow/ng_netflow.c +++ b/sys/netgraph/netflow/ng_netflow.c @@ -422,7 +422,7 @@ ng_netflow_rcvmsg (node_p node, item_p item, hook_p lasthook) { struct ng_netflow_setconfig *set; - if (msg->header.arglen != sizeof(struct ng_netflow_settimeouts)) + if (msg->header.arglen != sizeof(struct ng_netflow_setconfig)) ERROUT(EINVAL); set = (struct ng_netflow_setconfig *)msg->data; |