diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-01-14 07:26:12 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-01-14 07:26:12 +0000 |
commit | 212077afa275b7111e2a28798affa9689dede2ba (patch) | |
tree | 7979b9468be6603e87df16f8ba087dab5bf8d723 /source3/auth/auth_domain.c | |
parent | 42d9c734240574247cf3363a5d8ee67a17c668bc (diff) | |
download | samba-212077afa275b7111e2a28798affa9689dede2ba.tar.gz samba-212077afa275b7111e2a28798affa9689dede2ba.tar.bz2 samba-212077afa275b7111e2a28798affa9689dede2ba.zip |
Merge indirection, signed/unsigned and uninitialiased-value fixes from HEAD.
Andrew Bartlett
(This used to be commit 2a1adb8f81d8966e8919fffb9b4c69f3e6acd44f)
Diffstat (limited to 'source3/auth/auth_domain.c')
-rw-r--r-- | source3/auth/auth_domain.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/auth/auth_domain.c b/source3/auth/auth_domain.c index 79cf5b156d..b3f50072bc 100644 --- a/source3/auth/auth_domain.c +++ b/source3/auth/auth_domain.c @@ -432,7 +432,8 @@ static NTSTATUS check_ntdomain_security(const struct auth_context *auth_context, /* Test if machine password has expired and needs to be changed */ if (lp_machine_password_timeout()) { - if (time(NULL) > (last_change_time + + if (last_change_time > 0 && + time(NULL) > (last_change_time + lp_machine_password_timeout())) { global_machine_password_needs_changing = True; } |