mirror of
https://github.com/samba-team/samba.git
synced 2024-12-31 17:18:04 +03:00
netlogon_creds_cli: A netlogon_creds_cli_context needs a msg_ctx
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
47557ac9b1
commit
1de1fd8653
@ -283,6 +283,10 @@ NTSTATUS netlogon_creds_cli_context_global(struct loadparm_context *lp_ctx,
|
||||
|
||||
*_context = NULL;
|
||||
|
||||
if (msg_ctx == NULL) {
|
||||
return NT_STATUS_INVALID_PARAMETER_MIX;
|
||||
}
|
||||
|
||||
client_computer = lpcfg_netbios_name(lp_ctx);
|
||||
if (strlen(client_computer) > 15) {
|
||||
return NT_STATUS_INVALID_PARAMETER_MIX;
|
||||
@ -433,13 +437,11 @@ NTSTATUS netlogon_creds_cli_context_global(struct loadparm_context *lp_ctx,
|
||||
return status;
|
||||
}
|
||||
|
||||
if (msg_ctx != NULL) {
|
||||
context->db.g_ctx = g_lock_ctx_init(context, msg_ctx);
|
||||
if (context->db.g_ctx == NULL) {
|
||||
TALLOC_FREE(context);
|
||||
TALLOC_FREE(frame);
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
context->db.g_ctx = g_lock_ctx_init(context, msg_ctx);
|
||||
if (context->db.g_ctx == NULL) {
|
||||
TALLOC_FREE(context);
|
||||
TALLOC_FREE(frame);
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
if (netlogon_creds_cli_global_db != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user