diff options
-rw-r--r-- | auth/auth.c | 6 |
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. */ |