diff options
author | bz <bz@FreeBSD.org> | 2008-07-10 13:31:11 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2008-07-10 13:31:11 +0000 |
commit | 362cb79214c7ca17170d1530859aaf180e618d75 (patch) | |
tree | 465d7c3dd198bb4a6aefe767a4b80dc63c877b5a /sys/netinet6/in6_src.c | |
parent | 3881e50cbab0a113c2b83bf15fd896c969e4224e (diff) | |
download | FreeBSD-src-362cb79214c7ca17170d1530859aaf180e618d75.zip FreeBSD-src-362cb79214c7ca17170d1530859aaf180e618d75.tar.gz |
Pass the ucred along into in{,6}_pcblookup_local for upcoming
prison checks.
Reviewed by: rwatson
Diffstat (limited to 'sys/netinet6/in6_src.c')
-rw-r--r-- | sys/netinet6/in6_src.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/in6_src.c b/sys/netinet6/in6_src.c index ffc4c63..3464445 100644 --- a/sys/netinet6/in6_src.c +++ b/sys/netinet6/in6_src.c @@ -823,7 +823,7 @@ in6_pcbsetport(struct in6_addr *laddr, struct inpcb *inp, struct ucred *cred) *lastport = first; lport = htons(*lastport); } while (in6_pcblookup_local(pcbinfo, &inp->in6p_laddr, - lport, wild)); + lport, wild, cred)); } else { /* * counting up @@ -843,8 +843,8 @@ in6_pcbsetport(struct in6_addr *laddr, struct inpcb *inp, struct ucred *cred) if (*lastport < first || *lastport > last) *lastport = first; lport = htons(*lastport); - } while (in6_pcblookup_local(pcbinfo, - &inp->in6p_laddr, lport, wild)); + } while (in6_pcblookup_local(pcbinfo, &inp->in6p_laddr, + lport, wild, cred)); } inp->inp_lport = lport; |