diff options
author | jhb <jhb@FreeBSD.org> | 2002-04-09 20:04:10 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-04-09 20:04:10 +0000 |
commit | 6615797e535b58bbb6a5cd4a450b6634a80713a1 (patch) | |
tree | 81dd28a3fcf43c78c94f4bf4a98e250b2f583d5f /sys/netinet/in_pcb.c | |
parent | 026e9455dead3f556653721ef7026771bda37fbd (diff) | |
download | FreeBSD-src-6615797e535b58bbb6a5cd4a450b6634a80713a1.zip FreeBSD-src-6615797e535b58bbb6a5cd4a450b6634a80713a1.tar.gz |
Change the first argument of prison_xinpcb() to be a thread pointer instead
of a proc pointer so that prison_xinpcb() can use td_ucred.
Diffstat (limited to 'sys/netinet/in_pcb.c')
-rw-r--r-- | sys/netinet/in_pcb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index be95188..b4de80a 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -1031,11 +1031,11 @@ in_pcbremlists(inp) } int -prison_xinpcb(struct proc *p, struct inpcb *inp) +prison_xinpcb(struct thread *td, struct inpcb *inp) { - if (!jailed(p->p_ucred)) + if (!jailed(td->td_ucred)) return (0); - if (ntohl(inp->inp_laddr.s_addr) == prison_getip(p->p_ucred)) + if (ntohl(inp->inp_laddr.s_addr) == prison_getip(td->td_ucred)) return (0); return (1); } |