From 3d10a3f4b5b98f6d606ba1fa8eb030be02b9018d Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 1 May 1996 01:16:06 +0000 Subject: (S_auth_makeauth): Increment NAUTHS for first elt. (main): Initialize the ihash tables, dammit. --- auth/auth.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'auth') 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, -- cgit v1.2.3