mirror of
https://github.com/samba-team/samba.git
synced 2025-01-18 06:04:06 +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;
|
*_context = NULL;
|
||||||
|
|
||||||
|
if (msg_ctx == NULL) {
|
||||||
|
return NT_STATUS_INVALID_PARAMETER_MIX;
|
||||||
|
}
|
||||||
|
|
||||||
client_computer = lpcfg_netbios_name(lp_ctx);
|
client_computer = lpcfg_netbios_name(lp_ctx);
|
||||||
if (strlen(client_computer) > 15) {
|
if (strlen(client_computer) > 15) {
|
||||||
return NT_STATUS_INVALID_PARAMETER_MIX;
|
return NT_STATUS_INVALID_PARAMETER_MIX;
|
||||||
@ -433,13 +437,11 @@ NTSTATUS netlogon_creds_cli_context_global(struct loadparm_context *lp_ctx,
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (msg_ctx != NULL) {
|
context->db.g_ctx = g_lock_ctx_init(context, msg_ctx);
|
||||||
context->db.g_ctx = g_lock_ctx_init(context, msg_ctx);
|
if (context->db.g_ctx == NULL) {
|
||||||
if (context->db.g_ctx == NULL) {
|
TALLOC_FREE(context);
|
||||||
TALLOC_FREE(context);
|
TALLOC_FREE(frame);
|
||||||
TALLOC_FREE(frame);
|
return NT_STATUS_NO_MEMORY;
|
||||||
return NT_STATUS_NO_MEMORY;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (netlogon_creds_cli_global_db != NULL) {
|
if (netlogon_creds_cli_global_db != NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user