summaryrefslogtreecommitdiffstats
path: root/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-03-19 14:14:36 +0100
committerAndrew Bartlett <abartlet@samba.org>2014-03-28 08:34:24 +0100
commit34d45a3a513c6ce010fa16f809de515250ae1729 (patch)
tree768c936cd9a4409e5e2ed5cbd1c21bd3f3948e1f /librpc
parent533ad246443bbea5116c06fb6478453ddf004080 (diff)
downloadsamba-34d45a3a513c6ce010fa16f809de515250ae1729.tar.gz
samba-34d45a3a513c6ce010fa16f809de515250ae1729.tar.xz
samba-34d45a3a513c6ce010fa16f809de515250ae1729.zip
librpc/rpc: try to use DCERPC_NCA_S_* constants for error mappings
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/rpc/dcerpc_error.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/librpc/rpc/dcerpc_error.c b/librpc/rpc/dcerpc_error.c
index 7c983866647..4f0ed6e5dfa 100644
--- a/librpc/rpc/dcerpc_error.c
+++ b/librpc/rpc/dcerpc_error.c
@@ -101,15 +101,15 @@ _PUBLIC_ NTSTATUS dcerpc_fault_to_nt_status(uint32_t fault_code)
{
/* TODO: add more mappings */
switch (fault_code) {
- case DCERPC_FAULT_OP_RNG_ERROR:
+ case DCERPC_NCA_S_OP_RNG_ERROR:
return NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE;
- case DCERPC_FAULT_UNK_IF:
+ case DCERPC_NCA_S_UNKNOWN_IF:
return NT_STATUS_RPC_UNKNOWN_IF;
case DCERPC_FAULT_NDR:
return NT_STATUS_RPC_BAD_STUB_DATA;
- case DCERPC_FAULT_INVALID_TAG:
+ case DCERPC_NCA_S_FAULT_INVALID_TAG:
return NT_STATUS_RPC_ENUM_VALUE_OUT_OF_RANGE;
- case DCERPC_FAULT_CONTEXT_MISMATCH:
+ case DCERPC_NCA_S_FAULT_CONTEXT_MISMATCH:
return NT_STATUS_RPC_SS_CONTEXT_MISMATCH;
case DCERPC_FAULT_OTHER:
return NT_STATUS_RPC_CALL_FAILED;