From f897e7094f9630a808b9d4622bb542ac676a8fb2 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 7 Jun 2006 04:45:50 +0000 Subject: r16076: Fix for machine password timeout overflow from Shlomi Yaakobovich . Jeremy. (This used to be commit 5cd234a1fff1e9d025eea6600649e56c997eafc2) --- source3/auth/auth_domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/auth/auth_domain.c') diff --git a/source3/auth/auth_domain.c b/source3/auth/auth_domain.c index 6360d10b69..bedd318c3c 100644 --- a/source3/auth/auth_domain.c +++ b/source3/auth/auth_domain.c @@ -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; } -- cgit