Module Name: src
Committed By: elad
Date: Wed Dec 30 16:49:03 UTC 2009
Modified Files:
src/sys/dist/pf/net: pf.c
Log Message:
Use the right member to store gid in the non-NetBSD case.
Pointed out by uebayasi@ and cegger@, thanks!
To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/sys/dist/pf/net/pf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dist/pf/net/pf.c
diff -u src/sys/dist/pf/net/pf.c:1.58 src/sys/dist/pf/net/pf.c:1.59
--- src/sys/dist/pf/net/pf.c:1.58 Wed Dec 30 07:00:01 2009
+++ src/sys/dist/pf/net/pf.c Wed Dec 30 16:49:02 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: pf.c,v 1.58 2009/12/30 07:00:01 elad Exp $ */
+/* $NetBSD: pf.c,v 1.59 2009/12/30 16:49:02 elad Exp $ */
/* $OpenBSD: pf.c,v 1.552.2.1 2007/11/27 16:37:57 henning Exp $ */
/*
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pf.c,v 1.58 2009/12/30 07:00:01 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pf.c,v 1.59 2009/12/30 16:49:02 elad Exp $");
#include "bpfilter.h"
#include "pflog.h"
@@ -2829,7 +2829,7 @@
#else
so = inp->inp_socket;
pd->lookup.uid = so->so_euid;
- pd->lookup.uid = so->so_egid;
+ pd->lookup.gid = so->so_egid;
#endif /* !__NetBSD__ */
pd->lookup.pid = so->so_cpid;
return (1);