diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2002-04-01 21:31:13 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2002-04-01 21:31:13 +0000 |
| commit | 44731cab3b9966b7ca67f3fe50e7f3c711533730 (patch) | |
| tree | 79021f0d43a5858be317d5cd33eac8cd4962b336 /sys/netinet6/ip6_input.c | |
| parent | a4a49508b4ddf1b482743f71bcd6707c9ce7b406 (diff) | |
Notes
Diffstat (limited to 'sys/netinet6/ip6_input.c')
| -rw-r--r-- | sys/netinet6/ip6_input.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index f492fd047de2..d29bcae58197 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -1134,12 +1134,16 @@ ip6_savecontrol(in6p, mp, ip6, m) struct ip6_hdr *ip6; struct mbuf *m; { - struct proc *p = curproc; /* XXX */ +#if __FreeBSD__ >= 5 + struct thread *td = curthread; /* XXX */ +#else + struct proc *td = curproc; /* XXX */ +#endif int privileged = 0; int rthdr_exist = 0; - if (p && !suser(p)) + if (td && !suser(td)) privileged++; #ifdef SO_TIMESTAMP |
