summaryrefslogtreecommitdiff
path: root/auth1.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2004-06-22 03:37:11 +0000
committerBen Lindstrom <mouring@eviladmin.org>2004-06-22 03:37:11 +0000
commite35bf12eebca0c3ca248dca4c04bff83b9c475a1 (patch)
tree59869ab8834932a6a5a3965a4b30d4d44dbfb10a /auth1.c
parent59bf4a9bd44ce2c719437c74bd1e8e73b57d3c4a (diff)
- (bal) [auth-passwd.c auth1.c] Clean up unused variables.
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