1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

r18841: Protect against potential event loop when someone is using "winbind

cache time = 0".

Guenther
(This used to be commit 9ac6016e32d236e7470919c075df551d1d73498c)
This commit is contained in:
Günther Deschner 2006-09-23 06:36:22 +00:00 committed by Gerald (Jerry) Carter
parent 387bfebfcf
commit ee139b6f12

View File

@ -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;
}