summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2010-07-02 00:11:39 +0000
committerderaadt <deraadt@openbsd.org>2010-07-02 00:11:39 +0000
commita681889f8291546c2b5aaddfc788d137639c4bc2 (patch)
tree0808bc708012722552a667f4342a11f636cc5443
parentSwitch to nitems for the table, save some space. `Looks good' deraadt@. (diff)
downloadwireguard-openbsd-a681889f8291546c2b5aaddfc788d137639c4bc2.tar.xz
wireguard-openbsd-a681889f8291546c2b5aaddfc788d137639c4bc2.zip
structure copy the unp_connid to the other socket
-rw-r--r--sys/kern/uipc_usrreq.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index a7bffce7b64..3bc4e57841f 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_usrreq.c,v 1.47 2010/07/01 17:20:48 deraadt Exp $ */
+/* $OpenBSD: uipc_usrreq.c,v 1.48 2010/07/02 00:11:39 deraadt Exp $ */
/* $NetBSD: uipc_usrreq.c,v 1.18 1996/02/09 19:00:50 christos Exp $ */
/*
@@ -491,9 +491,7 @@ unp_connect(struct socket *so, struct mbuf *nam, struct proc *p)
unp3->unp_flags |= UNP_FEIDS;
so2 = so3;
if (unp2->unp_flags & UNP_FEIDSBIND) {
- unp->unp_connid.uid = unp2->unp_connid.uid;
- unp->unp_connid.gid = unp2->unp_connid.gid;
- unp->unp_connid.pid = unp2->unp_connid.pid;
+ unp->unp_connid = unp2->unp_connid;
unp->unp_flags |= UNP_FEIDS;
}
}