svn commit: samba r16076 - in branches/SAMBA_3_0/source: auth passdb
jra at samba.org
jra at samba.org
Wed Jun 7 04:45:51 GMT 2006
Author: jra
Date: 2006-06-07 04:45:50 +0000 (Wed, 07 Jun 2006)
New Revision: 16076
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16076
Log:
Fix for machine password timeout overflow from Shlomi Yaakobovich
<Shlomi at exanet.com>.
Jeremy.
Modified:
branches/SAMBA_3_0/source/auth/auth_domain.c
branches/SAMBA_3_0/source/passdb/secrets.c
Changeset:
Modified: branches/SAMBA_3_0/source/auth/auth_domain.c
===================================================================
--- branches/SAMBA_3_0/source/auth/auth_domain.c 2006-06-07 04:45:47 UTC (rev 16075)
+++ branches/SAMBA_3_0/source/auth/auth_domain.c 2006-06-07 04:45:50 UTC (rev 16076)
@@ -403,7 +403,7 @@
#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;
}
Modified: branches/SAMBA_3_0/source/passdb/secrets.c
===================================================================
--- branches/SAMBA_3_0/source/passdb/secrets.c 2006-06-07 04:45:47 UTC (rev 16075)
+++ branches/SAMBA_3_0/source/passdb/secrets.c 2006-06-07 04:45:50 UTC (rev 16076)
@@ -310,7 +310,7 @@
/* 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;
}
}
More information about the samba-cvs
mailing list