struct netr_DELTA_ENUM_ARRAY *delta_enum_array = NULL;
struct netlogon_creds_CredentialState *creds = NULL;
- status = netlogon_creds_cli_lock(cli->netlogon_creds,
+ if (rpcclient_netlogon_creds == NULL) {
+ return NT_STATUS_UNSUCCESSFUL;
+ }
+
+ status = netlogon_creds_cli_lock(rpcclient_netlogon_creds,
mem_ctx, &creds);
if (!NT_STATUS_IS_OK(status)) {
return status;
struct netr_DELTA_ENUM_ARRAY *delta_enum_array = NULL;
struct netlogon_creds_CredentialState *creds = NULL;
- status = netlogon_creds_cli_lock(cli->netlogon_creds,
+ if (rpcclient_netlogon_creds == NULL) {
+ return NT_STATUS_UNSUCCESSFUL;
+ }
+
+ status = netlogon_creds_cli_lock(rpcclient_netlogon_creds,
mem_ctx, &creds);
if (!NT_STATUS_IS_OK(status)) {
return status;
sscanf(argv[1], "%d", &rid);
}
- if (cli->netlogon_creds == NULL) {
+ if (rpcclient_netlogon_creds == NULL) {
return NT_STATUS_UNSUCCESSFUL;
}
- status = netlogon_creds_cli_lock(cli->netlogon_creds,
+ status = netlogon_creds_cli_lock(rpcclient_netlogon_creds,
mem_ctx, &creds);
if (!NT_STATUS_IS_OK(status)) {
return status;
ZERO_STRUCT(return_authenticator);
- status = netlogon_creds_cli_lock(cli->netlogon_creds,
+ if (rpcclient_netlogon_creds == NULL) {
+ return NT_STATUS_UNSUCCESSFUL;
+ }
+
+ status = netlogon_creds_cli_lock(rpcclient_netlogon_creds,
mem_ctx, &creds);
if (!NT_STATUS_IS_OK(status)) {
return status;