mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
force the time difference in cache comparisons to be unsigned to cope
with the local machine time changing (This used to be commit 116c0a0e3baa6a100a816f1ff2722782941ac3dc)
This commit is contained in:
parent
35623dac54
commit
13059beb24
@ -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…
x
Reference in New Issue
Block a user