summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-05-13 13:53:45 +0000
committerRoland McGrath <roland@gnu.org>1999-05-13 13:53:45 +0000
commita6bbf327684c219bfd5e84be098da81d33a2cb13 (patch)
tree7eca66de456ea5a62e7dfeb75e71deddd7218b01
parenteabcaaf2c6a36a0234a693cf66e825b73f8b94b6 (diff)
1999-05-13 Roland McGrath <roland@baalperazim.frob.com>
* auth.c (S_auth_server_authenticate, S_auth_user_authenticate): If rendezvous port arrives as MACH_PORT_DEAD, fail with EINVAL.
-rw-r--r--auth/auth.c6
1 files changed, 6 insertions, 0 deletions
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. */