summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-11-09 14:39:45 +0100
committerStefan Metzmacher <metze@samba.org>2007-11-09 21:23:16 +0100
commitf9578af966c1c1b5b5df4acac9977472d2896bea (patch)
tree6c46e463bf302012d29680f4067007d974baa0e0 /source3/utils
parent5290ea864e6871651c2cd4eb565641b79c124a48 (diff)
downloadsamba-f9578af966c1c1b5b5df4acac9977472d2896bea.tar.gz
samba-f9578af966c1c1b5b5df4acac9977472d2896bea.tar.bz2
samba-f9578af966c1c1b5b5df4acac9977472d2896bea.zip
ndr: change NTSTAUS into enum ndr_err_code (samba3 callers)
lib/messages_local.c rpc_client/ndr.c smbd/notify_internal.c utils/net_rpc_registry.c metze (This used to be commit c2645d2164c05976a98bafed980b6029baf89977)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc_registry.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c
index e1d65fb06b..c2b9aced69 100644
--- a/source3/utils/net_rpc_registry.c
+++ b/source3/utils/net_rpc_registry.c
@@ -986,6 +986,7 @@ static NTSTATUS rpc_registry_getsd_internal(const DOM_SID *domain_sid,
{
POLICY_HND pol_hive, pol_key;
NTSTATUS status;
+ enum ndr_err_code ndr_err;
struct KeySecurityData *sd = NULL;
uint32_t sec_info;
DATA_BLOB blob;
@@ -1033,11 +1034,13 @@ static NTSTATUS rpc_registry_getsd_internal(const DOM_SID *domain_sid,
blob.data = sd->data;
blob.length = sd->size;
- status = ndr_pull_struct_blob(&blob, mem_ctx, &sec_desc,
- (ndr_pull_flags_fn_t)ndr_pull_security_descriptor);
- if (!NT_STATUS_IS_OK(status)) {
+ ndr_err = ndr_pull_struct_blob(&blob, mem_ctx, &sec_desc,
+ (ndr_pull_flags_fn_t)ndr_pull_security_descriptor);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
+ status = ndr_map_error2ntstatus(ndr_err);
goto out;
}
+ status = NT_STATUS_OK;
display_sec_desc(&sec_desc);