- (djm) [auth2-kbdint.c auth2-none.c  auth2-passwd.c auth2-pubkey.c]
   Make cygwin code more consistent with that which surrounds it
diff --git a/auth2-passwd.c b/auth2-passwd.c
index a4f482d..2321ef4 100644
--- a/auth2-passwd.c
+++ b/auth2-passwd.c
@@ -55,12 +55,12 @@
 
 	if (change)
 		logit("password change not supported");
-	else if (PRIVSEP(auth_password(authctxt, password)) == 1
-#ifdef HAVE_CYGWIN
-	    && check_nt_auth(1, authctxt->pw)
-#endif
-	    )
+	else if (PRIVSEP(auth_password(authctxt, password)) == 1)
 		authenticated = 1;
+#ifdef HAVE_CYGWIN
+	if (check_nt_auth(1, authctxt->pw) == 0)
+		authenticated = 0;
+#endif
 	memset(password, 0, len);
 	xfree(password);
 	return authenticated;