Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dist/pf/net Use the right member to store gid in the non...



details:   https://anonhg.NetBSD.org/src/rev/11437e8d2f4d
branches:  trunk
changeset: 750407:11437e8d2f4d
user:      elad <elad%NetBSD.org@localhost>
date:      Wed Dec 30 16:49:02 2009 +0000

description:
Use the right member to store gid in the non-NetBSD case.

Pointed out by uebayasi@ and cegger@, thanks!

diffstat:

 sys/dist/pf/net/pf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7fc3ca2adc10 -r 11437e8d2f4d sys/dist/pf/net/pf.c
--- a/sys/dist/pf/net/pf.c      Wed Dec 30 14:53:02 2009 +0000
+++ b/sys/dist/pf/net/pf.c      Wed Dec 30 16:49:02 2009 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index