summaryrefslogtreecommitdiffstats
path: root/auth2-none.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth2-none.c')
-rw-r--r--auth2-none.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth2-none.c b/auth2-none.c
index c07b2dd8..692a2961 100644
--- a/auth2-none.c
+++ b/auth2-none.c
@@ -100,7 +100,7 @@ userauth_none(Authctxt *authctxt)
if (check_nt_auth(1, authctxt->pw) == 0)
return(0);
#endif
- return (authctxt->valid ? PRIVSEP(auth_password(authctxt, "")) : 0);
+ return PRIVSEP(auth_password(authctxt, "")) && authctxt->valid;
}
Authmethod method_none = {