From: Volker Lendecke Date: Sat, 13 Oct 2018 09:39:03 +0000 (+0200) Subject: winbindd_cache: Fix timeout calculation for sid<->name cache X-Git-Tag: tdb-1.3.17~1314 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb573c682353daf5b343b6a0f4832dcbc96ebc57;p=thirdparty%2Fsamba.git winbindd_cache: Fix timeout calculation for sid<->name cache Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index 2f3bac7587b..be3e5ffc2ad 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -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,