X-Git-Url: http://git.samba.org/?a=blobdiff_plain;f=source3%2Fwinbindd%2Fwinbindd_msrpc.c;h=39186f882574dc7306bbee0549ea515f7037ad37;hb=9195792a38027eb30b6ac36a134d52be4db0087c;hp=455de3d54c3b9be5250e126a3690ef9f7dab4f86;hpb=ec0104b1e0eea73331c58d26ea96b5167c2847ed;p=metze%2Fsamba%2Fwip.git diff --git a/source3/winbindd/winbindd_msrpc.c b/source3/winbindd/winbindd_msrpc.c index 455de3d54c3b..39186f882574 100644 --- a/source3/winbindd/winbindd_msrpc.c +++ b/source3/winbindd/winbindd_msrpc.c @@ -407,7 +407,7 @@ static NTSTATUS msrpc_query_user(struct winbindd_domain *domain, { struct rpc_pipe_client *samr_pipe; struct policy_handle dom_pol; - struct netr_SamInfo3 *user = NULL; + struct netr_SamInfo3 *user; TALLOC_CTX *tmp_ctx; NTSTATUS status; @@ -425,9 +425,7 @@ static NTSTATUS msrpc_query_user(struct winbindd_domain *domain, } /* try netsamlogon cache first */ - if (winbindd_use_cache()) { - user = netsamlogon_cache_get(tmp_ctx, user_sid); - } + user = netsamlogon_cache_get(tmp_ctx, user_sid); if (user != NULL) { DEBUG(5,("msrpc_query_user: Cache lookup succeeded for %s\n", sid_string_dbg(user_sid)));