summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--auth-passwd.c2
-rw-r--r--auth1.c6
3 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index b3d09c70d..00864980a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,5 @@
120040622 120040622
2 - (bal) [auth-passwd.c auth1.c] Clean up unused variables.
2 - (dtucker) OpenBSD CVS Sync 3 - (dtucker) OpenBSD CVS Sync
3 - djm@cvs.openbsd.org 2004/06/20 17:36:59 4 - djm@cvs.openbsd.org 2004/06/20 17:36:59
4 [ssh.c] 5 [ssh.c]
@@ -1361,4 +1362,4 @@
1361 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 1362 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
1362 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 1363 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
1363 1364
1364$Id: ChangeLog,v 1.3429 2004/06/22 03:27:16 dtucker Exp $ 1365$Id: ChangeLog,v 1.3430 2004/06/22 03:37:11 mouring Exp $
diff --git a/auth-passwd.c b/auth-passwd.c
index da247df7d..7a68e0562 100644
--- a/auth-passwd.c
+++ b/auth-passwd.c
@@ -64,7 +64,9 @@ auth_password(Authctxt *authctxt, const char *password)
64{ 64{
65 struct passwd * pw = authctxt->pw; 65 struct passwd * pw = authctxt->pw;
66 int ok = authctxt->valid; 66 int ok = authctxt->valid;
67#if defined(USE_SHADOW) && defined(HAS_SHADOW_EXPIRE)
67 static int expire_checked = 0; 68 static int expire_checked = 0;
69#endif
68 70
69#ifndef HAVE_CYGWIN 71#ifndef HAVE_CYGWIN
70 if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES) 72 if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES)
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