diff options
author | Jeremy Allison <jra@samba.org> | 2011-10-12 09:43:18 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-10-12 19:29:30 +0200 |
commit | 1e4761d05978b7a495d121acc1deaa7049f3911c (patch) | |
tree | a3b61930569a234604b8a1c0d4b511a72c293ffa /source3 | |
parent | 995d1567265be178b4e45f79ea4562a7041ffa52 (diff) | |
download | samba-1e4761d05978b7a495d121acc1deaa7049f3911c.tar.gz samba-1e4761d05978b7a495d121acc1deaa7049f3911c.tar.bz2 samba-1e4761d05978b7a495d121acc1deaa7049f3911c.zip |
Fix bug #8521 - winbindd cache timeout expiry test was reversed
Found and fix reported by Micha Lenk <micha@lenk.info>. Thanks !
Diffstat (limited to 'source3')
-rw-r--r-- | 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 2bb4df9736..620b8588aa 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -4807,7 +4807,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; } |