summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-05-01 01:16:06 +0000
committerRoland McGrath <roland@gnu.org>1996-05-01 01:16:06 +0000
commit3d10a3f4b5b98f6d606ba1fa8eb030be02b9018d (patch)
tree72fae7c6c077514818665057427683373bf68db0 /auth
parent9cb9a5549f4f35cc4042c120eabfe6c7e2ea0220 (diff)
(S_auth_makeauth): Increment NAUTHS for first elt.
(main): Initialize the ihash tables, dammit.
Diffstat (limited to 'auth')
-rw-r--r--auth/auth.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/auth/auth.c b/auth/auth.c
index 09e7e141..0225a66b 100644
--- a/auth/auth.c
+++ b/auth/auth.c
@@ -137,7 +137,7 @@ S_auth_makeauth (struct authhandle *auth,
if (!(auths[i + 1] = auth_port_to_handle (authpts[i])))
return EINVAL;
- nauths = i;
+ ++nauths;
/* Verify that the union of the handles passed in either contains euid 0
(root), or contains all the requested ids. */
@@ -495,6 +495,12 @@ main (int argc, char **argv)
mach_port_deallocate (mach_task_self (), boot);
mach_port_deallocate (mach_task_self (), hostpriv);
+ /* Allocate the hash tables. */
+ err = ihash_create (&pending_users);
+ assert_perror (err);
+ err = ihash_create (&pending_servers);
+ assert_perror (err);
+
/* Be a server. */
while (1)
ports_manage_port_operations_multithread (auth_bucket,