aboutsummaryrefslogtreecommitdiff
path: root/libports/manage-one-thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'libports/manage-one-thread.c')
-rw-r--r--libports/manage-one-thread.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libports/manage-one-thread.c b/libports/manage-one-thread.c
index b920338f..313838cb 100644
--- a/libports/manage-one-thread.c
+++ b/libports/manage-one-thread.c
@@ -71,9 +71,10 @@ ports_manage_port_operations_one_thread (struct port_bucket *bucket,
having to do another hash table lookup in the intran
functions if protected payloads are not supported by
the kernel. */
- inp->msgh_bits = MACH_MSGH_BITS (
- MACH_MSGH_BITS_REMOTE (inp->msgh_bits),
- MACH_MSG_TYPE_PROTECTED_PAYLOAD);
+ inp->msgh_bits =
+ MACH_MSGH_BITS_OTHER (inp->msgh_bits)
+ | MACH_MSGH_BITS (MACH_MSGH_BITS_REMOTE (inp->msgh_bits),
+ MACH_MSG_TYPE_PROTECTED_PAYLOAD);
inp->msgh_protected_payload = (unsigned long) pi;
}
}