From a9d955f3346f4bb2e7da9dc039e95cc8c67ac1cd Mon Sep 17 00:00:00 2001
From: Roland McGrath <roland@gnu.org>
Date: Fri, 17 Mar 2000 10:35:05 +0000
Subject: 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>

	* io-ops.c (S_io_reauthenticate): Use ports_get_send_right.
---
 pfinet/io-ops.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/pfinet/io-ops.c b/pfinet/io-ops.c
index 90671c17..ebb1c172 100644
--- a/pfinet/io-ops.c
+++ b/pfinet/io-ops.c
@@ -337,10 +337,8 @@ S_io_reauthenticate (struct sock_user *user,
   newuser = make_sock_user (user->sock, 0, 1, 0);
 
   auth = getauth ();
-  newright = ports_get_right (newuser);
-  err = mach_port_insert_right (mach_task_self (), newright, newright,
-				MACH_MSG_TYPE_MAKE_SEND);
-  assert_perror (err);
+  newright = ports_get_send_right (newuser);
+  assert (newright != MACH_PORT_NULL);
   do
     err = auth_server_authenticate (auth,
 				    rend,
-- 
cgit v1.2.3