struct auth_user_info_dc *user_info_dc = NULL;
struct auth_session_info *session_info = NULL;
TALLOC_CTX *mem_ctx = NULL;
+ bool ok;
mem_ctx = talloc_new(parent_ctx);
if (mem_ctx == NULL) {
return NT_STATUS_NO_MEMORY;
}
- cli_credentials_set_conf(session_info->credentials, lp_ctx);
+ ok = cli_credentials_set_conf(session_info->credentials, lp_ctx);
+ if (!ok) {
+ return NT_STATUS_INTERNAL_ERROR;
+ }
cli_credentials_set_machine_account_pending(session_info->credentials, lp_ctx);
*_session_info = session_info;
struct auth_user_info_dc *user_info_dc = NULL;
struct auth_session_info *session_info = NULL;
TALLOC_CTX *mem_ctx = talloc_new(parent_ctx);
+ bool ok;
nt_status = auth_anonymous_user_info_dc(mem_ctx,
lpcfg_netbios_name(lp_ctx),
return NT_STATUS_NO_MEMORY;
}
- cli_credentials_set_conf(session_info->credentials, lp_ctx);
+ ok = cli_credentials_set_conf(session_info->credentials, lp_ctx);
+ if (!ok) {
+ return NT_STATUS_INTERNAL_ERROR;
+ }
cli_credentials_set_anonymous(session_info->credentials);
*_session_info = session_info;