diff options
-rw-r--r-- | auth/auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/auth/auth.c b/auth/auth.c index 11db0f8f..ec738ce2 100644 --- a/auth/auth.c +++ b/auth/auth.c @@ -305,7 +305,7 @@ S_auth_user_authenticate (struct authhandle *userauth, if (! userauth) return EOPNOTSUPP; - if (rendezvous == MACH_PORT_DEAD) /* Port died in transit. */ + if (rendezvous == MACH_PORT_NULL || rendezvous == MACH_PORT_DEAD) return EINVAL; u.user = userauth; @@ -382,7 +382,7 @@ S_auth_server_authenticate (struct authhandle *serverauth, if (! serverauth) return EOPNOTSUPP; - if (rendezvous == MACH_PORT_DEAD) /* Port died in transit. */ + if (rendezvous == MACH_PORT_NULL || rendezvous == MACH_PORT_DEAD) return EINVAL; mutex_lock (&pending_lock); |