mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
winbindd_cache: Fix timeout calculation for sid<->name cache
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
9291a3330a
commit
fb573c6823
@ -1749,7 +1749,7 @@ static void wcache_name_to_sid_fn(const struct dom_sid *sid,
|
||||
|
||||
*state->sid = *sid;
|
||||
*state->type = type;
|
||||
state->found = (state->offline || (timeout < time(NULL)));
|
||||
state->found = (state->offline || (timeout > time(NULL)));
|
||||
}
|
||||
|
||||
static NTSTATUS wcache_name_to_sid(struct winbindd_domain *domain,
|
||||
@ -1884,7 +1884,7 @@ static void wcache_sid_to_name_fn(const char *domain, const char *name,
|
||||
return;
|
||||
}
|
||||
*state->type = type;
|
||||
state->found = (state->offline || (timeout < time(NULL)));
|
||||
state->found = (state->offline || (timeout > time(NULL)));
|
||||
}
|
||||
|
||||
static NTSTATUS wcache_sid_to_name(struct winbindd_domain *domain,
|
||||
|
Loading…
x
Reference in New Issue
Block a user