diff options
author | Colin Watson <cjwatson@debian.org> | 2005-05-25 11:01:01 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2005-05-25 11:01:01 +0000 |
commit | e88de75a1a236779a10e8ccbcc51d25308be8840 (patch) | |
tree | 7495477a2a7d0cac17a9fcded020b6ea816182ef /auth2-passwd.c | |
parent | 30a0f9443782cd9d7308acd09430bf586186aa55 (diff) | |
parent | 5d05471f6657646d1d6500c7c43134462c407ee6 (diff) |
Merge 4.0p1 to the trunk.
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) | |||
55 | 55 | ||
56 | if (change) | 56 | if (change) |
57 | logit("password change not supported"); | 57 | logit("password change not supported"); |
58 | else if (PRIVSEP(auth_password(authctxt, password)) == 1 | 58 | else if (PRIVSEP(auth_password(authctxt, password)) == 1) |
59 | authenticated = 1; | ||
59 | #ifdef HAVE_CYGWIN | 60 | #ifdef HAVE_CYGWIN |
60 | && check_nt_auth(1, authctxt->pw) | 61 | if (check_nt_auth(1, authctxt->pw) == 0) |
62 | authenticated = 0; | ||
61 | #endif | 63 | #endif |
62 | ) | ||
63 | authenticated = 1; | ||
64 | memset(password, 0, len); | 64 | memset(password, 0, len); |
65 | xfree(password); | 65 | xfree(password); |
66 | return authenticated; | 66 | return authenticated; |