diff options
| author | Dima Dorfman <dd@FreeBSD.org> | 2002-02-27 04:45:37 +0000 |
|---|---|---|
| committer | Dima Dorfman <dd@FreeBSD.org> | 2002-02-27 04:45:37 +0000 |
| commit | 76183f345377df655cfb357a53d52aa045fa8073 (patch) | |
| tree | b9bd8d438620748c0c88ed7a994eb55f8d617278 /sys/netinet/udp_usrreq.c | |
| parent | b7eeb587f6c0aa1aa84ed6cca74ad7ec43ed8019 (diff) | |
Notes
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
| -rw-r--r-- | sys/netinet/udp_usrreq.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 6eeb3a1e00f6..047a5d4e7272 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -651,11 +651,7 @@ udp_getcred(SYSCTL_HANDLER_ARGS) error = cr_cansee(req->td->td_proc->p_ucred, inp->inp_socket->so_cred); if (error) goto out; - bzero(&xuc, sizeof(xuc)); - xuc.cr_uid = inp->inp_socket->so_cred->cr_uid; - xuc.cr_ngroups = inp->inp_socket->so_cred->cr_ngroups; - bcopy(inp->inp_socket->so_cred->cr_groups, xuc.cr_groups, - sizeof(xuc.cr_groups)); + cru2x(inp->inp_socket->so_cred, &xuc); error = SYSCTL_OUT(req, &xuc, sizeof(struct xucred)); out: splx(s); |
