X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/b0ca6225cab82c1d38d707ba70f8454fdf8f3333..823221b29186882ad56bfb9bf95c6b2dc86e8bbe:/auth2-passwd.c diff --git a/auth2-passwd.c b/auth2-passwd.c index a4f482d2..2321ef47 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;