mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r18842: Protect against "winbind cache time = 0" on two other occasions.
Guenther
(This used to be commit b1cd9d45e9
)
This commit is contained in:
parent
ee139b6f12
commit
61761288e9
@ -221,7 +221,7 @@ static void krb5_ticket_gain_handler(struct timed_event *te,
|
||||
retry_later:
|
||||
|
||||
entry->event = add_timed_event(entry,
|
||||
timeval_current_ofs(lp_winbind_cache_time(), 0),
|
||||
timeval_current_ofs(MAX(30, lp_winbind_cache_time()), 0),
|
||||
"krb5_ticket_gain_handler",
|
||||
krb5_ticket_gain_handler,
|
||||
entry);
|
||||
@ -351,7 +351,7 @@ NTSTATUS add_ccache_to_list(const char *princ_name,
|
||||
if (schedule_refresh_event && renew_until > 0) {
|
||||
if (postponed_request) {
|
||||
entry->event = add_timed_event(entry,
|
||||
timeval_current_ofs(lp_winbind_cache_time(), 0),
|
||||
timeval_current_ofs(MAX(30, lp_winbind_cache_time()), 0),
|
||||
"krb5_ticket_gain_handler",
|
||||
krb5_ticket_gain_handler,
|
||||
entry);
|
||||
|
Loading…
Reference in New Issue
Block a user