- (djm) Apply Cygwin pointer deref fix from Corinna Vinschen
   <vinschen@redhat.com> Could be abused to guess valid usernames
diff --git a/auth1.c b/auth1.c
index d7e80c2..3aac26f 100644
--- a/auth1.c
+++ b/auth1.c
@@ -313,9 +313,9 @@
 
 #ifdef HAVE_CYGWIN
 		if (authenticated &&
-		    !check_nt_auth(type == SSH_CMSG_AUTH_PASSWORD,pw->pw_uid)) {
+		    !check_nt_auth(type == SSH_CMSG_AUTH_PASSWORD, pw)) {
 			packet_disconnect("Authentication rejected for uid %d.",
-			(int)pw->pw_uid);
+			pw == NULL ? -1 : pw->pw_uid);
 			authenticated = 0;
 		}
 #else