The branch, v4-9-test has been updated
       via  0cf64bd winbindd_cache: Fix timeout calculation for sid<->name cache
      from  21e3e8b vfs_fruit: move check in ad_convert() to ad_convert_*() 
subfunctions

https://git.samba.org/?p=samba.git;a=shortlog;h=v4-9-test


- Log -----------------------------------------------------------------
commit 0cf64bd2ea8c989d83fdcddf4dd77ca72f015461
Author: Volker Lendecke <v...@samba.org>
Date:   Sat Oct 13 11:39:03 2018 +0200

    winbindd_cache: Fix timeout calculation for sid<->name cache
    
    Bug: https://bugzilla.samba.org/show_bug.cgi?id=13662
    Signed-off-by: Volker Lendecke <v...@samba.org>
    Reviewed-by: Jeremy Allison <j...@samba.org>
    (cherry picked from commit fb573c682353daf5b343b6a0f4832dcbc96ebc57)
    
    Autobuild-User(v4-9-test): Karolin Seeger <ksee...@samba.org>
    Autobuild-Date(v4-9-test): Wed Oct 24 13:59:02 CEST 2018 on sn-devel-144

-----------------------------------------------------------------------

Summary of changes:
 source3/winbindd/winbindd_cache.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/winbindd/winbindd_cache.c 
b/source3/winbindd/winbindd_cache.c
index af67aa3..b0644d3 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,


-- 
Samba Shared Repository

Reply via email to