mirror of
https://github.com/samba-team/samba.git
synced 2025-03-05 20:58:40 +03:00
netlogon_creds_cli: Simplify netlogon_creds_cli_context_global
netlogon_creds_cli_open_global_db() already contains the NULL check. Use that. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
954167a001
commit
8636496531
@ -434,13 +434,6 @@ NTSTATUS netlogon_creds_cli_context_global(struct loadparm_context *lp_ctx,
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
if (netlogon_creds_cli_global_db != NULL) {
|
||||
context->db.ctx = netlogon_creds_cli_global_db;
|
||||
*_context = context;
|
||||
TALLOC_FREE(frame);
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
status = netlogon_creds_cli_open_global_db(lp_ctx);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
TALLOC_FREE(context);
|
||||
|
Loading…
x
Reference in New Issue
Block a user