_hurd_intr_rpc_mach_msg: handle message iteration correctly.
commitf11a92993c45a91c3237733486ce2b8735af2ba0
authorFlavio Cruz <flaviocruz@gmail.com>
Sat, 18 Nov 2023 23:18:44 +0000 (18 18:18 -0500)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 18 Nov 2023 23:37:20 +0000 (19 00:37 +0100)
treeebeaeff7601691daa712d7779c96c7c46da2cf0d
parentdae3cf4134d476a4b4ef86fd7012231d6436c15e
_hurd_intr_rpc_mach_msg: handle message iteration correctly.

The `ty` pointer is only set at the end of the loop so that
`msgtl_header.msgt_inline` and `msgtl_header.msgt_deallocate` remain
valid. Also, when deallocating memory, we use the length from the
message directly rather than hard coding mach_port_t since we want to
deallocate any kind of OOL data.
Message-ID: <ZVlGVD6eEN-dXsOr@jupiter.tail36e24.ts.net>
hurd/intr-msg.c