diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2002-02-27 18:32:23 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2002-02-27 18:32:23 +0000 |
| commit | a854ed98931b2e365eddd24cd2a1bb53a3f1828f (patch) | |
| tree | de74317436bc6bf8211535e1dbda3f6762d05582 /sys/netinet/tcp_subr.c | |
| parent | 65e3406d28b159fab93b499d25ed079b2c978ff7 (diff) | |
Notes
Diffstat (limited to 'sys/netinet/tcp_subr.c')
| -rw-r--r-- | sys/netinet/tcp_subr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 99b08c482581..94773d282dbc 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -848,7 +848,7 @@ tcp_pcblist(SYSCTL_HANDLER_ARGS) for (inp = LIST_FIRST(tcbinfo.listhead), i = 0; inp && i < n; inp = LIST_NEXT(inp, inp_list)) { if (inp->inp_gencnt <= gencnt) { - if (cr_cansee(req->td->td_proc->p_ucred, + if (cr_cansee(req->td->td_ucred, inp->inp_socket->so_cred)) continue; inp_list[i++] = inp; @@ -919,7 +919,7 @@ tcp_getcred(SYSCTL_HANDLER_ARGS) error = ENOENT; goto out; } - error = cr_cansee(req->td->td_proc->p_ucred, inp->inp_socket->so_cred); + error = cr_cansee(req->td->td_ucred, inp->inp_socket->so_cred); if (error) goto out; cru2x(inp->inp_socket->so_cred, &xuc); @@ -971,7 +971,7 @@ tcp6_getcred(SYSCTL_HANDLER_ARGS) error = ENOENT; goto out; } - error = cr_cansee(req->td->td_proc->p_ucred, inp->inp_socket->so_cred); + error = cr_cansee(req->td->td_ucred, inp->inp_socket->so_cred); if (error) goto out; cru2x(inp->inp_socket->so_cred, &xuc); |
