summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-11-04 16:16:18 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:44:14 +0100
commitf549a5ddc8c2b99737f1db8f93c1cd70c2923dbd (patch)
tree761662a91b67f95c5278512dedc65eafd0805748 /source4/librpc
parent1e14ad7cfeb6a416991da87b7d137dc9b89ef74f (diff)
downloadsamba-f549a5ddc8c2b99737f1db8f93c1cd70c2923dbd.tar.gz
samba-f549a5ddc8c2b99737f1db8f93c1cd70c2923dbd.tar.bz2
samba-f549a5ddc8c2b99737f1db8f93c1cd70c2923dbd.zip
r25824: - NT_STATUS_IS_ERR() is not the same as !NT_STATUS_IS_OK()
- make the success case some clear by returning NT_STATUS_OK metze (This used to be commit 2b570f96fcf537c1269237e1067ea7801b563b7e)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/rpc/dcerpc.c2
-rw-r--r--source4/librpc/rpc/dcerpc_util.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c
index 1f0cc3699a..5f7b2991a9 100644
--- a/source4/librpc/rpc/dcerpc.c
+++ b/source4/librpc/rpc/dcerpc.c
@@ -803,7 +803,7 @@ NTSTATUS dcerpc_auth3(struct dcerpc_connection *c,
return status;
}
- return status;
+ return NT_STATUS_OK;
}
diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c
index 408860c9ed..3e2fd9b09b 100644
--- a/source4/librpc/rpc/dcerpc_util.c
+++ b/source4/librpc/rpc/dcerpc_util.c
@@ -443,7 +443,7 @@ NTSTATUS dcerpc_floor_get_lhs_data(struct epm_floor *epm_floor, struct ndr_synta
ndr->flags |= LIBNDR_FLAG_NOALIGN;
status = ndr_pull_GUID(ndr, NDR_SCALARS | NDR_BUFFERS, &syntax->uuid);
- if (NT_STATUS_IS_ERR(status)) {
+ if (!NT_STATUS_IS_OK(status)) {
talloc_free(mem_ctx);
return status;
}
@@ -453,7 +453,7 @@ NTSTATUS dcerpc_floor_get_lhs_data(struct epm_floor *epm_floor, struct ndr_synta
talloc_free(mem_ctx);
- return status;
+ return NT_STATUS_OK;
}
static DATA_BLOB dcerpc_floor_pack_lhs_data(TALLOC_CTX *mem_ctx, const struct ndr_syntax_id *syntax)
@@ -1416,5 +1416,5 @@ NTSTATUS dcerpc_secondary_context(struct dcerpc_pipe *p,
*pp2 = p2;
- return status;
+ return NT_STATUS_OK;
}