summaryrefslogtreecommitdiff
path: root/libdiskfs/io-reauthenticate.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2001-03-28 18:06:38 +0000
committerMarcus Brinkmann <marcus@gnu.org>2001-03-28 18:06:38 +0000
commit50d29b8c6df6ab62be6a029175b6fa0f251ed305 (patch)
tree150c10f4160f89a2168af62b8cd7a12270f00a75 /libdiskfs/io-reauthenticate.c
parent5b8d267faf5a8291c6e239d2d18749d4426cb685 (diff)
2001-03-28 Marcus Brinkmann <marcus@gnu.org>
* dir-lookup.c (diskfs_S_dir_lookup): New variable USER. Store new iouser in that variable and free it after creating the protid for DIRPORT. * trans-callback.c (_diskfs_translator_callback2_fn): Likewise. * io-restrict-auth.c (diskfs_S_io_restrict_auth): Likewise. * io-reauthenticate.c (diskfs_S_io_reauthenticate): Likewise.
Diffstat (limited to 'libdiskfs/io-reauthenticate.c')
-rw-r--r--libdiskfs/io-reauthenticate.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libdiskfs/io-reauthenticate.c b/libdiskfs/io-reauthenticate.c
index e2c0e68b..eb564a26 100644
--- a/libdiskfs/io-reauthenticate.c
+++ b/libdiskfs/io-reauthenticate.c
@@ -26,6 +26,7 @@ diskfs_S_io_reauthenticate (struct protid *cred,
struct protid *newcred;
error_t err;
mach_port_t newright;
+ struct iouser *user;
if (cred == 0)
return EOPNOTSUPP;
@@ -46,8 +47,10 @@ diskfs_S_io_reauthenticate (struct protid *cred,
newright = ports_get_send_right (newcred);
assert (newright != MACH_PORT_NULL);
- diskfs_finish_protid (newcred, iohelp_reauth (diskfs_auth_server_port,
- rend_port, newright, 1));
+ user = iohelp_reauth (diskfs_auth_server_port, rend_port, newright, 1);
+ diskfs_finish_protid (newcred, user);
+
+ iohelp_free_iouser (user);
mach_port_deallocate (mach_task_self (), rend_port);
mach_port_deallocate (mach_task_self (), newright);