diff options
Diffstat (limited to 'auth/auth.c')
-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 c36bcb20..a7a188a2 100644 --- a/auth/auth.c +++ b/auth/auth.c @@ -299,7 +299,7 @@ S_auth_user_authenticate (struct authhandle *userauth, if (! userauth) return EOPNOTSUPP; - if (rendezvous == MACH_PORT_NULL || rendezvous == MACH_PORT_DEAD) + if (! MACH_PORT_VALID (rendezvous)) return EINVAL; u.user = userauth; @@ -380,7 +380,7 @@ S_auth_server_authenticate (struct authhandle *serverauth, if (! serverauth) return EOPNOTSUPP; - if (rendezvous == MACH_PORT_NULL || rendezvous == MACH_PORT_DEAD) + if (! MACH_PORT_VALID (rendezvous)) return EINVAL; pthread_mutex_lock (&pending_lock); |