Skip to content

Commit

Permalink
- (bal) [auth-passwd.c auth1.c] Clean up unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
mouring committed Jun 22, 2004
1 parent 59bf4a9 commit e35bf12
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
20040622
- (bal) [auth-passwd.c auth1.c] Clean up unused variables.
- (dtucker) OpenBSD CVS Sync
- [email protected] 2004/06/20 17:36:59
[ssh.c]
Expand Down Expand Up @@ -1361,4 +1362,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu

$Id: ChangeLog,v 1.3429 2004/06/22 03:27:16 dtucker Exp $
$Id: ChangeLog,v 1.3430 2004/06/22 03:37:11 mouring Exp $
2 changes: 2 additions & 0 deletions auth-passwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ auth_password(Authctxt *authctxt, const char *password)
{
struct passwd * pw = authctxt->pw;
int ok = authctxt->valid;
#if defined(USE_SHADOW) && defined(HAS_SHADOW_EXPIRE)
static int expire_checked = 0;
#endif

#ifndef HAVE_CYGWIN
if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES)
Expand Down
6 changes: 3 additions & 3 deletions auth1.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ do_authloop(Authctxt *authctxt)
u_int dlen;
u_int ulen;
int prev, type = 0;
struct passwd *pw = authctxt->pw;

debug("Attempting authentication for %s%.100s.",
authctxt->valid ? "" : "illegal user ", authctxt->user);
Expand Down Expand Up @@ -232,9 +231,10 @@ do_authloop(Authctxt *authctxt)

#ifdef HAVE_CYGWIN
if (authenticated &&
!check_nt_auth(type == SSH_CMSG_AUTH_PASSWORD, pw)) {
!check_nt_auth(type == SSH_CMSG_AUTH_PASSWORD,
authctxt->pw)) {
packet_disconnect("Authentication rejected for uid %d.",
pw == NULL ? -1 : pw->pw_uid);
authctxt->pw == NULL ? -1 : authctxt->pw->pw_uid);
authenticated = 0;
}
#else
Expand Down

0 comments on commit e35bf12

Please sign in to comment.