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/ipc_kmsg.c | 1 - 1 file changed, 1 deletion(-) (limited to 'ipc/ipc_kmsg.c') diff --git a/ipc/ipc_kmsg.c b/ipc/ipc_kmsg.c index 8f54f81d..4f5ffb5f 100644 --- a/ipc/ipc_kmsg.c +++ b/ipc/ipc_kmsg.c @@ -531,7 +531,6 @@ ipc_kmsg_get( return MACH_SEND_INVALID_DATA; } - kmsg->ikm_header.msgh_size = size; *kmsgp = kmsg; return MACH_MSG_SUCCESS; } -- cgit v1.2.3