diff options
Diffstat (limited to 'auth1.c')
-rw-r--r-- | auth1.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |