summaryrefslogtreecommitdiff
path: root/auth1.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth1.c')
-rw-r--r--auth1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth1.c b/auth1.c
index d7e80c28a..3aac26fcc 100644
--- a/auth1.c
+++ b/auth1.c
@@ -313,9 +313,9 @@ do_authloop(Authctxt *authctxt)
313 313
314#ifdef HAVE_CYGWIN 314#ifdef HAVE_CYGWIN
315 if (authenticated && 315 if (authenticated &&
316 !check_nt_auth(type == SSH_CMSG_AUTH_PASSWORD,pw->pw_uid)) { 316 !check_nt_auth(type == SSH_CMSG_AUTH_PASSWORD, pw)) {
317 packet_disconnect("Authentication rejected for uid %d.", 317 packet_disconnect("Authentication rejected for uid %d.",
318 (int)pw->pw_uid); 318 pw == NULL ? -1 : pw->pw_uid);
319 authenticated = 0; 319 authenticated = 0;
320 } 320 }
321#else 321#else