diff options
author | Damien Miller <djm@mindrot.org> | 2004-09-11 14:42:09 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2004-09-11 14:42:09 +0200 |
commit | 4765679649c51a83e5ceb3d0c1e51e33db251f27 (patch) | |
tree | 17ca270288550e41dbaf6dad66846dbd57a09fdf /auth2-passwd.c | |
parent | - (dtucker) [auth-pam.c] Relocate sshpam_store_conv(), no code change. (diff) | |
download | openssh-4765679649c51a83e5ceb3d0c1e51e33db251f27.tar.xz openssh-4765679649c51a83e5ceb3d0c1e51e33db251f27.zip |
- (djm) [auth2-kbdint.c auth2-none.c auth2-passwd.c auth2-pubkey.c]
Make cygwin code more consistent with that which surrounds it
Diffstat (limited to 'auth2-passwd.c')
-rw-r--r-- | auth2-passwd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/auth2-passwd.c b/auth2-passwd.c index a4f482d2e..2321ef47b 100644 --- a/auth2-passwd.c +++ b/auth2-passwd.c @@ -55,12 +55,12 @@ userauth_passwd(Authctxt *authctxt) if (change) logit("password change not supported"); - else if (PRIVSEP(auth_password(authctxt, password)) == 1 + else if (PRIVSEP(auth_password(authctxt, password)) == 1) + authenticated = 1; #ifdef HAVE_CYGWIN - && check_nt_auth(1, authctxt->pw) + if (check_nt_auth(1, authctxt->pw) == 0) + authenticated = 0; #endif - ) - authenticated = 1; memset(password, 0, len); xfree(password); return authenticated; |