mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
r16076: Fix for machine password timeout overflow from Shlomi Yaakobovich
<Shlomi@exanet.com>. Jeremy.
This commit is contained in:
parent
bc78cca290
commit
5cd234a1ff
@ -403,7 +403,7 @@ static NTSTATUS check_trustdomain_security(const struct auth_context *auth_conte
|
||||
|
||||
#if 0
|
||||
/* Test if machine password is expired and need to be changed */
|
||||
if (time(NULL) > last_change_time + lp_machine_password_timeout())
|
||||
if (time(NULL) > last_change_time + (time_t)lp_machine_password_timeout())
|
||||
{
|
||||
global_machine_password_needs_changing = True;
|
||||
}
|
||||
|
@ -310,7 +310,7 @@ BOOL secrets_fetch_trust_account_password(const char *domain, uint8 ret_pwd[16],
|
||||
/* Test if machine password has expired and needs to be changed */
|
||||
if (lp_machine_password_timeout()) {
|
||||
if (pass->mod_time > 0 && time(NULL) > (pass->mod_time +
|
||||
lp_machine_password_timeout())) {
|
||||
(time_t)lp_machine_password_timeout())) {
|
||||
global_machine_password_needs_changing = True;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user