From ae43555cca2333171e6c28b5230c85422c8587a4 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 8 Jul 1996 01:30:26 +0000 Subject: (S_io_reauthenticate): Don't use unsafe MOVE_SEND in call to auth_server_authenticate. --- pfinet/io-ops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pfinet') diff --git a/pfinet/io-ops.c b/pfinet/io-ops.c index 1eaae9bd..35281ce0 100644 --- a/pfinet/io-ops.c +++ b/pfinet/io-ops.c @@ -377,13 +377,14 @@ S_io_reauthenticate (struct sock_user *user, auth = getauth (); err = auth_server_authenticate (auth, rend, - MACH_MSG_TYPE_MOVE_SEND, + MACH_MSG_TYPE_COPY_SEND, ports_get_right (newuser), MACH_MSG_TYPE_MAKE_SEND, &gen_uids, &genuidlen, &aux_uids, &auxuidlen, &gen_gids, &gengidlen, &aux_gids, &auxgidlen); + mach_port_deallocate (mach_task_self (), rend); assert (!err); /* XXX */ mach_port_deallocate (mach_task_self (), auth); -- cgit v1.2.3