From 11303f44317f1a7f3be36a7061241131ee4c5653 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 12 Oct 2011 09:43:18 -0700 Subject: [PATCH] Fix bug #8521 - winbindd cache timeout expiry test was reversed Found and fix reported by Micha Lenk . Thanks ! (cherry picked from commit 1e4761d05978b7a495d121acc1deaa7049f3911c) --- source3/winbindd/winbindd_cache.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index 4f902b5..4b0c35b 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -4803,7 +4803,7 @@ bool wcache_fetch_ndr(TALLOC_CTX *mem_ctx, struct winbindd_domain *domain, goto fail; } entry_timeout = BVAL(data.dptr, 4); - if (entry_timeout > time(NULL)) { + if (time(NULL) > entry_timeout) { DEBUG(10, ("Entry has timed out\n")); goto fail; } -- 1.7.3.1