From 4f82ae66628a517585d6bef9465662a45481d024 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 28 Aug 2022 13:10:35 +0200 Subject: copyinmsg: Set msgh_size inside copyinmsg rather than the caller In the 32/64 conversion case it is copyinmsg that will know the eventual size. --- ipc/mach_msg.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'ipc/mach_msg.c') diff --git a/ipc/mach_msg.c b/ipc/mach_msg.c index 0ae8fe0c..3a75fef6 100644 --- a/ipc/mach_msg.c +++ b/ipc/mach_msg.c @@ -464,8 +464,6 @@ mach_msg_trap( goto slow_get; } - kmsg->ikm_header.msgh_size = send_size; - fast_copyin: /* * optimized ipc_kmsg_copyin/ipc_mqueue_copyin -- cgit v1.2.3