summaryrefslogtreecommitdiff
path: root/pfinet
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-03-17 10:35:05 +0000
committerRoland McGrath <roland@gnu.org>2000-03-17 10:35:05 +0000
commita9d955f3346f4bb2e7da9dc039e95cc8c67ac1cd (patch)
tree57913a6da6ffa5ca59179dbb8471b3fac78e6275 /pfinet
parent6882534f6a988db8627793193ca183a080dd515d (diff)
2000-03-17 Roland McGrath <roland@baalperazim.frob.com>
* io-ops.c (S_io_reauthenticate): Use ports_get_send_right.
Diffstat (limited to 'pfinet')
-rw-r--r--pfinet/io-ops.c6
1 files 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,