]> andersk Git - openssh.git/blobdiff - auth2-passwd.c
- (djm) [auth2-kbdint.c auth2-none.c auth2-passwd.c auth2-pubkey.c]
[openssh.git] / auth2-passwd.c
index a4f482d2e287fc3fabab717791df4c7db37997de..2321ef47be38145250fc16b51354d3d7d2a44cd5 100644 (file)
@@ -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;
This page took 0.076446 seconds and 4 git commands to generate.