summaryrefslogtreecommitdiff
path: root/auth1.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth1.c')
-rw-r--r--auth1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/auth1.c b/auth1.c
index 471f27172..e541935ce 100644
--- a/auth1.c
+++ b/auth1.c
@@ -69,7 +69,6 @@ do_authloop(Authctxt *authctxt)
69 u_int dlen; 69 u_int dlen;
70 u_int ulen; 70 u_int ulen;
71 int prev, type = 0; 71 int prev, type = 0;
72 struct passwd *pw = authctxt->pw;
73 72
74 debug("Attempting authentication for %s%.100s.", 73 debug("Attempting authentication for %s%.100s.",
75 authctxt->valid ? "" : "illegal user ", authctxt->user); 74 authctxt->valid ? "" : "illegal user ", authctxt->user);
@@ -232,9 +231,10 @@ do_authloop(Authctxt *authctxt)
232 231
233#ifdef HAVE_CYGWIN 232#ifdef HAVE_CYGWIN
234 if (authenticated && 233 if (authenticated &&
235 !check_nt_auth(type == SSH_CMSG_AUTH_PASSWORD, pw)) { 234 !check_nt_auth(type == SSH_CMSG_AUTH_PASSWORD,
235 authctxt->pw)) {
236 packet_disconnect("Authentication rejected for uid %d.", 236 packet_disconnect("Authentication rejected for uid %d.",
237 pw == NULL ? -1 : pw->pw_uid); 237 authctxt->pw == NULL ? -1 : authctxt->pw->pw_uid);
238 authenticated = 0; 238 authenticated = 0;
239 } 239 }
240#else 240#else