1
0
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:
Volker Lendecke 2018-10-13 11:39:03 +02:00 committed by Jeremy Allison
parent 9291a3330a
commit fb573c6823

View File

@ -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,