diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-07-08 01:09:53 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-07-08 01:09:53 +0000 |
commit | f27a6c577d599a595062c6004d48798b141a77e7 (patch) | |
tree | 020758004a9bd113580578ae03f4105733194710 | |
parent | de4711a130cc5c01359f7e0b58e4496e0ecf6c26 (diff) |
(S_io_reauthenticate): Don't use unsafe MOVE_SEND in
auth_server_authenticate.
-rw-r--r-- | boot/boot.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |