From a6bbf327684c219bfd5e84be098da81d33a2cb13 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 13 May 1999 13:53:45 +0000 Subject: 1999-05-13 Roland McGrath * auth.c (S_auth_server_authenticate, S_auth_user_authenticate): If rendezvous port arrives as MACH_PORT_DEAD, fail with EINVAL. --- auth/auth.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'auth/auth.c') diff --git a/auth/auth.c b/auth/auth.c index a49d58c9..dd164934 100644 --- a/auth/auth.c +++ b/auth/auth.c @@ -278,6 +278,9 @@ S_auth_user_authenticate (struct authhandle *userauth, if (! userauth) return EOPNOTSUPP; + if (rendezvous == MACH_PORT_DEAD) /* Port died in transit. */ + return EINVAL; + mutex_lock (&pending_lock); /* Look for this port in the server list. */ @@ -361,6 +364,9 @@ S_auth_server_authenticate (struct authhandle *serverauth, if (! serverauth) return EOPNOTSUPP; + if (rendezvous == MACH_PORT_DEAD) /* Port died in transit. */ + return EINVAL; + mutex_lock (&pending_lock); /* Look for this port in the user list. */ -- cgit v1.2.3