diff options
author | pjd <pjd@FreeBSD.org> | 2004-03-27 21:05:46 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-03-27 21:05:46 +0000 |
commit | 49554d1bd86202a6694cfff7c5fdc77511af0d50 (patch) | |
tree | c845ffa71d0beb0ebbebdf12f6a9ebe3e3c71f52 /sys/netinet/ip_divert.c | |
parent | 02bc13377989c8a404cdeacd93dd1dabc710c44a (diff) | |
download | FreeBSD-src-49554d1bd86202a6694cfff7c5fdc77511af0d50.zip FreeBSD-src-49554d1bd86202a6694cfff7c5fdc77511af0d50.tar.gz |
Reduce 'td' argument to 'cred' (struct ucred) argument in those functions:
- in_pcbbind(),
- in_pcbbind_setup(),
- in_pcbconnect(),
- in_pcbconnect_setup(),
- in6_pcbbind(),
- in6_pcbconnect(),
- in6_pcbsetport().
"It should simplify/clarify things a great deal." --rwatson
Requested by: rwatson
Reviewed by: rwatson, ume
Diffstat (limited to 'sys/netinet/ip_divert.c')
-rw-r--r-- | sys/netinet/ip_divert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c index 46c5810..0baddc7 100644 --- a/sys/netinet/ip_divert.c +++ b/sys/netinet/ip_divert.c @@ -505,7 +505,7 @@ div_bind(struct socket *so, struct sockaddr *nam, struct thread *td) else { ((struct sockaddr_in *)nam)->sin_addr.s_addr = INADDR_ANY; INP_LOCK(inp); - error = in_pcbbind(inp, nam, td); + error = in_pcbbind(inp, nam, td->td_ucred); INP_UNLOCK(inp); } INP_INFO_WUNLOCK(&divcbinfo); |