1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

librpc/rpc: map DCERPC_NCA_S_UNSUPPORTED_TYPE to NT_STATUS_RPC_UNSUPPORTED_TYPE

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Stefan Metzmacher 2024-09-18 22:37:14 +02:00 committed by Ralph Boehme
parent 722e93e4d9
commit 492f6a0eef
2 changed files with 6 additions and 6 deletions

View File

@ -42,7 +42,7 @@ static const struct dcerpc_fault_table dcerpc_faults[] =
_FAULT_STR_NO_NT_MAPPING(DCERPC_NCA_S_OUT_ARGS_TOO_BIG),
_FAULT_STR(DCERPC_NCA_S_SERVER_TOO_BUSY, NT_STATUS_RPC_SERVER_TOO_BUSY),
_FAULT_STR_NO_NT_MAPPING(DCERPC_NCA_S_FAULT_STRING_TOO_LARGE),
_FAULT_STR_NO_NT_MAPPING(DCERPC_NCA_S_UNSUPPORTED_TYPE),
_FAULT_STR(DCERPC_NCA_S_UNSUPPORTED_TYPE, NT_STATUS_RPC_UNSUPPORTED_TYPE),
_FAULT_STR_NO_NT_MAPPING(DCERPC_NCA_S_FAULT_ADDR_ERROR),
_FAULT_STR(DCERPC_NCA_S_FAULT_FP_DIV_BY_ZERO, NT_STATUS_RPC_FP_DIV_ZERO),
_FAULT_STR(DCERPC_NCA_S_FAULT_FP_UNDERFLOW, NT_STATUS_RPC_FP_UNDERFLOW),

View File

@ -884,21 +884,21 @@ static bool test_object_uuid(struct torture_context *tctx,
torture_assert(tctx,
test_object_one_uuid(tctx, NULL,
NT_STATUS_RPC_NOT_RPC_ERROR,
NT_STATUS_RPC_UNSUPPORTED_TYPE,
DCERPC_NCA_S_UNSUPPORTED_TYPE),
"failed to test NULL object uuid");
object_uuid = GUID_zero();
torture_assert(tctx,
test_object_one_uuid(tctx, &object_uuid,
NT_STATUS_RPC_NOT_RPC_ERROR,
NT_STATUS_RPC_UNSUPPORTED_TYPE,
DCERPC_NCA_S_UNSUPPORTED_TYPE),
"failed to test zeroed object uuid");
object_uuid = GUID_random();
torture_assert(tctx,
test_object_one_uuid(tctx, &object_uuid,
NT_STATUS_RPC_NOT_RPC_ERROR,
NT_STATUS_RPC_UNSUPPORTED_TYPE,
DCERPC_NCA_S_UNSUPPORTED_TYPE),
"failed to test random object uuid");
@ -911,13 +911,13 @@ static bool test_object_uuid(struct torture_context *tctx,
torture_assert(tctx,
test_object_one_uuid(tctx, &ndr_table_spoolss.syntax_id.uuid,
NT_STATUS_RPC_NOT_RPC_ERROR,
NT_STATUS_RPC_UNSUPPORTED_TYPE,
DCERPC_NCA_S_UNSUPPORTED_TYPE),
"failed to test spoolss interface uuid");
torture_assert(tctx,
test_object_one_uuid(tctx, &ndr_table_iremotewinspool.syntax_id.uuid,
NT_STATUS_RPC_NOT_RPC_ERROR,
NT_STATUS_RPC_UNSUPPORTED_TYPE,
DCERPC_NCA_S_UNSUPPORTED_TYPE),
"failed to test iremotewinspool interface uuid");