svn commit: samba r16075 - in trunk/source: auth passdb

jra at samba.org jra at samba.org
Wed Jun 7 04:45:47 GMT 2006


Author: jra
Date: 2006-06-07 04:45:47 +0000 (Wed, 07 Jun 2006)
New Revision: 16075

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16075

Log:
Fix for machine password timeout overflow from Shlomi Yaakobovich
<Shlomi at exanet.com>.
Jeremy.

Modified:
   trunk/source/auth/auth_domain.c
   trunk/source/passdb/secrets.c


Changeset:
Modified: trunk/source/auth/auth_domain.c
===================================================================
--- trunk/source/auth/auth_domain.c	2006-06-07 04:26:11 UTC (rev 16074)
+++ trunk/source/auth/auth_domain.c	2006-06-07 04:45:47 UTC (rev 16075)
@@ -414,7 +414,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: trunk/source/passdb/secrets.c
===================================================================
--- trunk/source/passdb/secrets.c	2006-06-07 04:26:11 UTC (rev 16074)
+++ trunk/source/passdb/secrets.c	2006-06-07 04:45:47 UTC (rev 16075)
@@ -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