From 50d29b8c6df6ab62be6a029175b6fa0f251ed305 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Wed, 28 Mar 2001 18:06:38 +0000 Subject: 2001-03-28 Marcus Brinkmann * 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. --- libdiskfs/dir-lookup.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libdiskfs/dir-lookup.c') diff --git a/libdiskfs/dir-lookup.c b/libdiskfs/dir-lookup.c index 489b4dd8..2cecc91d 100644 --- a/libdiskfs/dir-lookup.c +++ b/libdiskfs/dir-lookup.c @@ -209,6 +209,7 @@ diskfs_S_dir_lookup (struct protid *dircred, || fshelp_translated (&np->transbox))) { mach_port_t dirport; + struct iouser *user; /* A callback function for short-circuited translators. Symlink & ifsock are handled elsewhere. */ @@ -247,11 +248,12 @@ diskfs_S_dir_lookup (struct protid *dircred, /* Create an unauthenticated port for DNP, and then unlock it. */ + user = iohelp_create_iouser (make_idvec (), make_idvec ()); error = diskfs_create_protid (diskfs_make_peropen (dnp, 0, dircred->po), - iohelp_create_iouser (make_idvec (), - make_idvec ()), - &newpi); + user, &newpi); + iohelp_free_iouser (user); + if (error) goto out; -- cgit v1.2.3