summaryrefslogtreecommitdiff
path: root/auth-passwd.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-02-09 17:08:23 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-02-09 17:08:23 +1100
commit92170a862634bf9ebe958cc75911658d18e30538 (patch)
tree397fc75d254e3227db28dc532527179f21645acb /auth-passwd.c
parent96d4710e3838af8c03a55ce37913568877dd0283 (diff)
- (dtucker) [auth-passwd.c openbsd-compat/port-aix.c] Don't call
disable_forwarding() from compat library. Prevent linker errrors trying to resolve it for binaries other than sshd. ok djm@
Diffstat (limited to 'auth-passwd.c')
-rw-r--r--auth-passwd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/auth-passwd.c b/auth-passwd.c
index fb14f5ce4..27ece3f72 100644
--- a/auth-passwd.c
+++ b/auth-passwd.c
@@ -73,7 +73,7 @@ int
73auth_password(Authctxt *authctxt, const char *password) 73auth_password(Authctxt *authctxt, const char *password)
74{ 74{
75 struct passwd * pw = authctxt->pw; 75 struct passwd * pw = authctxt->pw;
76 int ok = authctxt->valid; 76 int result, ok = authctxt->valid;
77#if defined(USE_SHADOW) && defined(HAS_SHADOW_EXPIRE) 77#if defined(USE_SHADOW) && defined(HAS_SHADOW_EXPIRE)
78 static int expire_checked = 0; 78 static int expire_checked = 0;
79#endif 79#endif
@@ -110,14 +110,14 @@ auth_password(Authctxt *authctxt, const char *password)
110#if defined(USE_SHADOW) && defined(HAS_SHADOW_EXPIRE) 110#if defined(USE_SHADOW) && defined(HAS_SHADOW_EXPIRE)
111 if (!expire_checked) { 111 if (!expire_checked) {
112 expire_checked = 1; 112 expire_checked = 1;
113 if (auth_shadow_pwexpired(authctxt)) { 113 if (auth_shadow_pwexpired(authctxt))
114 disable_forwarding();
115 authctxt->force_pwchange = 1; 114 authctxt->force_pwchange = 1;
116 }
117 } 115 }
118#endif 116#endif
119 117 result = sys_auth_passwd(authctxt, password);
120 return (sys_auth_passwd(authctxt, password) && ok); 118 if (authctxt->force_pwchange)
119 disable_forwarding();
120 return (result && ok);
121} 121}
122 122
123#ifdef BSD_AUTH 123#ifdef BSD_AUTH