summaryrefslogtreecommitdiff
path: root/pflocal
diff options
context:
space:
mode:
authorManuel Menal <mmenal@hurdfr.org>2010-09-19 18:45:33 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-09-19 18:45:33 +0200
commit94d5d954073f67a96b126e20b626e95033f776f0 (patch)
tree95c0ffee4d2624976e60051a3d55eee34ac5844a /pflocal
parentbe9be179a2cde041fbe042362ee80f9874233953 (diff)
Fix port transmission over pflocal
* pflocal/socket.c (S_socket_recv): Return transmitted port to caller thanks to MACH_MSG_TYPE_COPY_SEND instead of MACH_MSG_TYPE_MAKE_SEND (since this is a send right here).
Diffstat (limited to 'pflocal')
-rw-r--r--pflocal/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pflocal/socket.c b/pflocal/socket.c
index 69838f11..c5c4e1df 100644
--- a/pflocal/socket.c
+++ b/pflocal/socket.c
@@ -395,7 +395,7 @@ S_socket_recv (struct sock_user *user,
/* Setup mach ports for return. */
{
*addr_type = MACH_MSG_TYPE_MAKE_SEND;
- *ports_type = MACH_MSG_TYPE_MAKE_SEND;
+ *ports_type = MACH_MSG_TYPE_COPY_SEND;
if (source_addr)
{
*addr = ports_get_right (source_addr);