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:
parent
722e93e4d9
commit
492f6a0eef
@ -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_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(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_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_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_DIV_BY_ZERO, NT_STATUS_RPC_FP_DIV_ZERO),
|
||||||
_FAULT_STR(DCERPC_NCA_S_FAULT_FP_UNDERFLOW, NT_STATUS_RPC_FP_UNDERFLOW),
|
_FAULT_STR(DCERPC_NCA_S_FAULT_FP_UNDERFLOW, NT_STATUS_RPC_FP_UNDERFLOW),
|
||||||
|
@ -884,21 +884,21 @@ static bool test_object_uuid(struct torture_context *tctx,
|
|||||||
|
|
||||||
torture_assert(tctx,
|
torture_assert(tctx,
|
||||||
test_object_one_uuid(tctx, NULL,
|
test_object_one_uuid(tctx, NULL,
|
||||||
NT_STATUS_RPC_NOT_RPC_ERROR,
|
NT_STATUS_RPC_UNSUPPORTED_TYPE,
|
||||||
DCERPC_NCA_S_UNSUPPORTED_TYPE),
|
DCERPC_NCA_S_UNSUPPORTED_TYPE),
|
||||||
"failed to test NULL object uuid");
|
"failed to test NULL object uuid");
|
||||||
|
|
||||||
object_uuid = GUID_zero();
|
object_uuid = GUID_zero();
|
||||||
torture_assert(tctx,
|
torture_assert(tctx,
|
||||||
test_object_one_uuid(tctx, &object_uuid,
|
test_object_one_uuid(tctx, &object_uuid,
|
||||||
NT_STATUS_RPC_NOT_RPC_ERROR,
|
NT_STATUS_RPC_UNSUPPORTED_TYPE,
|
||||||
DCERPC_NCA_S_UNSUPPORTED_TYPE),
|
DCERPC_NCA_S_UNSUPPORTED_TYPE),
|
||||||
"failed to test zeroed object uuid");
|
"failed to test zeroed object uuid");
|
||||||
|
|
||||||
object_uuid = GUID_random();
|
object_uuid = GUID_random();
|
||||||
torture_assert(tctx,
|
torture_assert(tctx,
|
||||||
test_object_one_uuid(tctx, &object_uuid,
|
test_object_one_uuid(tctx, &object_uuid,
|
||||||
NT_STATUS_RPC_NOT_RPC_ERROR,
|
NT_STATUS_RPC_UNSUPPORTED_TYPE,
|
||||||
DCERPC_NCA_S_UNSUPPORTED_TYPE),
|
DCERPC_NCA_S_UNSUPPORTED_TYPE),
|
||||||
"failed to test random object uuid");
|
"failed to test random object uuid");
|
||||||
|
|
||||||
@ -911,13 +911,13 @@ static bool test_object_uuid(struct torture_context *tctx,
|
|||||||
|
|
||||||
torture_assert(tctx,
|
torture_assert(tctx,
|
||||||
test_object_one_uuid(tctx, &ndr_table_spoolss.syntax_id.uuid,
|
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),
|
DCERPC_NCA_S_UNSUPPORTED_TYPE),
|
||||||
"failed to test spoolss interface uuid");
|
"failed to test spoolss interface uuid");
|
||||||
|
|
||||||
torture_assert(tctx,
|
torture_assert(tctx,
|
||||||
test_object_one_uuid(tctx, &ndr_table_iremotewinspool.syntax_id.uuid,
|
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),
|
DCERPC_NCA_S_UNSUPPORTED_TYPE),
|
||||||
"failed to test iremotewinspool interface uuid");
|
"failed to test iremotewinspool interface uuid");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user