git.samba.org
/
ira
/
tdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
095a8c2
)
Fix bug #8521 - winbindd cache timeout expiry test was reversed
author
Jeremy Allison
<jra@samba.org>
Wed, 12 Oct 2011 16:43:18 +0000
(09:43 -0700)
committer
Karolin Seeger
<kseeger@samba.org>
Sat, 15 Oct 2011 17:50:14 +0000
(19:50 +0200)
Found and fix reported by Micha Lenk <micha@lenk.info>. Thanks !
(cherry picked from commit
1e4761d05978b7a495d121acc1deaa7049f3911c
)
source3/winbindd/winbindd_cache.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/winbindd_cache.c
b/source3/winbindd/winbindd_cache.c
index 4f902b5291a6b62d26f2d39f4500b5b57b979896..4b0c35b9d289d0d319fb89943ee393a25d73647c 100644
(file)
--- 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;
}