diff options
author | Günther Deschner <gd@samba.org> | 2006-09-23 06:36:22 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:01:04 -0500 |
commit | 9ac6016e32d236e7470919c075df551d1d73498c (patch) | |
tree | a3ea99444c3a5f7d9e31eca45347ea7b2167a409 /source/nsswitch/winbindd_cred_cache.c | |
parent | f0508ecb44f13e9e9e521e2534889e98a31d2372 (diff) | |
download | samba-9ac6016e32d236e7470919c075df551d1d73498c.tar.gz samba-9ac6016e32d236e7470919c075df551d1d73498c.tar.xz samba-9ac6016e32d236e7470919c075df551d1d73498c.zip |
r18841: Protect against potential event loop when someone is using "winbind
cache time = 0".
Guenther
Diffstat (limited to 'source/nsswitch/winbindd_cred_cache.c')
-rw-r--r-- | source/nsswitch/winbindd_cred_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/nsswitch/winbindd_cred_cache.c b/source/nsswitch/winbindd_cred_cache.c index 420ed2426d8..ef49dbfe74b 100644 --- a/source/nsswitch/winbindd_cred_cache.c +++ b/source/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; } |