From 1e6744df4d3a64a6b848998b44a7fc7cdbe4456d Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 8 Jul 1996 01:28:42 +0000 Subject: (netfs_S_io_reauthenticate): Don't use unsafe MOVE_SEND in call to auth_server_authenticate. --- libnetfs/io-reauthenticate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libnetfs') diff --git a/libnetfs/io-reauthenticate.c b/libnetfs/io-reauthenticate.c index 5e08f413..3d8db79d 100644 --- a/libnetfs/io-reauthenticate.c +++ b/libnetfs/io-reauthenticate.c @@ -43,13 +43,14 @@ netfs_S_io_reauthenticate (struct protid *user, mach_port_t rend_port) newpi = netfs_make_protid (user->po, 0); err = auth_server_authenticate (netfs_auth_server_port, rend_port, - MACH_MSG_TYPE_MOVE_SEND, + MACH_MSG_TYPE_COPY_SEND, ports_get_right (newpi), MACH_MSG_TYPE_MAKE_SEND, &gen_uids, &genuidlen, &aux_uids, &auxuidlen, &gen_gids, &gengidlen, &aux_uids, &auxuidlen); + mach_port_deallocate (mach_task_self (), rend_port); assert_perror (err); newpi->credential = netfs_make_credential (gen_uids, genuidlen, -- cgit v1.2.3