From f27a6c577d599a595062c6004d48798b141a77e7 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 8 Jul 1996 01:09:53 +0000 Subject: (S_io_reauthenticate): Don't use unsafe MOVE_SEND in auth_server_authenticate. --- boot/boot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'boot/boot.c') diff --git a/boot/boot.c b/boot/boot.c index a746e81a..2a6cf848 100644 --- a/boot/boot.c +++ b/boot/boot.c @@ -1557,7 +1557,7 @@ S_io_reauthenticate (mach_port_t object, unsigned int gulen = 0, aulen = 0, gglen = 0, aglen = 0; if (! auth_server_authenticate (authserver, - rend, MACH_MSG_TYPE_MOVE_SEND, + rend, MACH_MSG_TYPE_COPY_SEND, object, MACH_MSG_TYPE_MAKE_SEND, &gu, &gulen, &au, &aulen, @@ -1569,6 +1569,7 @@ S_io_reauthenticate (mach_port_t object, mig_deallocate ((vm_address_t) gg, gglen * sizeof *gu); mig_deallocate ((vm_address_t) au, aulen * sizeof *gu); } + mach_port_deallocate (mach_task_self (), rend); return 0; } -- cgit v1.2.3