mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
force the time difference in cache comparisons to be unsigned to cope
with the local machine time changing
This commit is contained in:
parent
ec73d26c7f
commit
116c0a0e3b
@ -173,9 +173,12 @@ static BOOL wcache_server_down(struct winbindd_domain *domain)
|
||||
static void refresh_sequence_number(struct winbindd_domain *domain, BOOL force)
|
||||
{
|
||||
NTSTATUS status;
|
||||
unsigned time_diff;
|
||||
|
||||
time_diff = time(NULL) - domain->last_seq_check;
|
||||
|
||||
/* see if we have to refetch the domain sequence number */
|
||||
if (!force && (time(NULL) - domain->last_seq_check < lp_winbind_cache_time())) {
|
||||
if (!force && (time_diff < lp_winbind_cache_time())) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user