diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-04-24 00:00:40 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-04-24 10:44:53 +0200 |
commit | f7bc84409a7a6736ec2cf1110dd7200a954e3b7e (patch) | |
tree | 06957e31b9ff2507842260c7cc969cd2645c1029 /source3/libnet | |
parent | e7cf7204e60552b45952325f343ea894fda21346 (diff) | |
download | samba-f7bc84409a7a6736ec2cf1110dd7200a954e3b7e.tar.gz samba-f7bc84409a7a6736ec2cf1110dd7200a954e3b7e.tar.bz2 samba-f7bc84409a7a6736ec2cf1110dd7200a954e3b7e.zip |
s3:rpc_client: map fault codes to NTSTATUS with dcerpc_fault_to_nt_status()
Most fault codes have a NTSTATUS representation, so use that.
This brings the fault handling in common with the source4/librpc/rpc code,
which make it possible to share more highlevel code, between source3 and
source4 as the error checking can be the same now.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Apr 24 10:44:53 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/libnet')
-rw-r--r-- | source3/libnet/libnet_join.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c index 1e866c3dd1..c3693a8925 100644 --- a/source3/libnet/libnet_join.c +++ b/source3/libnet/libnet_join.c @@ -1074,7 +1074,7 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx, &user_info, &result); - if (NT_STATUS_EQUAL(status, NT_STATUS(DCERPC_FAULT_INVALID_TAG))) { + if (NT_STATUS_EQUAL(status, NT_STATUS_RPC_ENUM_VALUE_OUT_OF_RANGE)) { /* retry with level 24 */ |