diff options
Diffstat (limited to 'auth2-none.c')
-rw-r--r-- | auth2-none.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auth2-none.c b/auth2-none.c index c07b2dd81..692a2961f 100644 --- a/auth2-none.c +++ b/auth2-none.c | |||
@@ -100,7 +100,7 @@ userauth_none(Authctxt *authctxt) | |||
100 | if (check_nt_auth(1, authctxt->pw) == 0) | 100 | if (check_nt_auth(1, authctxt->pw) == 0) |
101 | return(0); | 101 | return(0); |
102 | #endif | 102 | #endif |
103 | return (authctxt->valid ? PRIVSEP(auth_password(authctxt, "")) : 0); | 103 | return PRIVSEP(auth_password(authctxt, "")) && authctxt->valid; |
104 | } | 104 | } |
105 | 105 | ||
106 | Authmethod method_none = { | 106 | Authmethod method_none = { |