diff options
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -335,7 +335,7 @@ userauth_none(Authctxt *authctxt) | |||
335 | return(0); | 335 | return(0); |
336 | 336 | ||
337 | #ifdef HAVE_CYGWIN | 337 | #ifdef HAVE_CYGWIN |
338 | if (check_nt_auth(1, authctxt->pw->pw_uid) == 0) | 338 | if (check_nt_auth(1, authctxt->pw) == 0) |
339 | return(0); | 339 | return(0); |
340 | #endif | 340 | #endif |
341 | #ifdef USE_PAM | 341 | #ifdef USE_PAM |
@@ -361,7 +361,7 @@ userauth_passwd(Authctxt *authctxt) | |||
361 | packet_done(); | 361 | packet_done(); |
362 | if (authctxt->valid && | 362 | if (authctxt->valid && |
363 | #ifdef HAVE_CYGWIN | 363 | #ifdef HAVE_CYGWIN |
364 | check_nt_auth(1, authctxt->pw->pw_uid) && | 364 | check_nt_auth(1, authctxt->pw) && |
365 | #endif | 365 | #endif |
366 | #ifdef USE_PAM | 366 | #ifdef USE_PAM |
367 | auth_pam_password(authctxt->pw, password) == 1) | 367 | auth_pam_password(authctxt->pw, password) == 1) |
@@ -398,7 +398,7 @@ userauth_kbdint(Authctxt *authctxt) | |||
398 | xfree(devs); | 398 | xfree(devs); |
399 | xfree(lang); | 399 | xfree(lang); |
400 | #ifdef HAVE_CYGWIN | 400 | #ifdef HAVE_CYGWIN |
401 | if (check_nt_auth(0, authctxt->pw->pw_uid) == 0) | 401 | if (check_nt_auth(0, authctxt->pw) == 0) |
402 | return(0); | 402 | return(0); |
403 | #endif | 403 | #endif |
404 | return authenticated; | 404 | return authenticated; |
@@ -504,7 +504,7 @@ userauth_pubkey(Authctxt *authctxt) | |||
504 | xfree(pkalg); | 504 | xfree(pkalg); |
505 | xfree(pkblob); | 505 | xfree(pkblob); |
506 | #ifdef HAVE_CYGWIN | 506 | #ifdef HAVE_CYGWIN |
507 | if (check_nt_auth(0, authctxt->pw->pw_uid) == 0) | 507 | if (check_nt_auth(0, authctxt->pw) == 0) |
508 | return(0); | 508 | return(0); |
509 | #endif | 509 | #endif |
510 | return authenticated; | 510 | return authenticated; |