kern/134220: ng_netflow(4): incorrect comparison in ng_netflow_rcvmsg()

Eugene Mychlo myc at
Tue May 5 06:20:02 UTC 2009

>Number:         134220
>Category:       kern
>Synopsis:       ng_netflow(4): incorrect comparison in ng_netflow_rcvmsg()
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 05 06:20:01 UTC 2009
>Originator:     Eugene Mychlo
>Release:        FreeBSD 7.2-RC2
Rekomendata, JSC
FreeBSD mycws.local 7.2-RC2 FreeBSD 7.2-RC2 #0: Thu Apr 23 22:07:24 UTC 2009     root at  i386
ng_netflow_rcvmsg() compare msg->header.arglen with sizeof(struct ng_netflow_settimeouts) instead of sizeof(struct ng_netflow_setconfig) when processing NGM_NETFLOW_SETCONFIG control message.


Patch attached with submission follows:

--- sys/netgraph/netflow/ng_netflow.c	(revision 191778)
+++ sys/netgraph/netflow/ng_netflow.c	(working copy)
@@ -422,7 +422,7 @@
 			struct ng_netflow_setconfig *set;
-			if (msg->header.arglen != sizeof(struct ng_netflow_settimeouts))
+			if (msg->header.arglen != sizeof(struct ng_netflow_setconfig))
 			set = (struct ng_netflow_setconfig *)msg->data;


More information about the freebsd-bugs mailing list