From ee139b6f1276461dc16c762152aaaa135f913a85 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Sat, 23 Sep 2006 06:36:22 +0000 Subject: r18841: Protect against potential event loop when someone is using "winbind cache time = 0". Guenther (This used to be commit 9ac6016e32d236e7470919c075df551d1d73498c) --- source3/nsswitch/winbindd_cred_cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/nsswitch/winbindd_cred_cache.c') diff --git a/source3/nsswitch/winbindd_cred_cache.c b/source3/nsswitch/winbindd_cred_cache.c index 420ed2426d..ef49dbfe74 100644 --- a/source3/nsswitch/winbindd_cred_cache.c +++ b/source3/nsswitch/winbindd_cred_cache.c @@ -1,7 +1,7 @@ /* Unix SMB/CIFS implementation. - Winbind daemon - krb5 credential cache funcions + Winbind daemon - krb5 credential cache functions and in-memory cache functions. Copyright (C) Guenther Deschner 2005-2006 @@ -136,7 +136,7 @@ static void krb5_ticket_refresh_handler(struct timed_event *te, * seconds when the KDC was not available right now. */ if (ret == KRB5_KDC_UNREACH) { - new_start = time(NULL) + lp_winbind_cache_time(); + new_start = time(NULL) + MAX(30, lp_winbind_cache_time()); goto done; } -- cgit