diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-08-18 06:14:47 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2004-08-18 06:14:47 +0000 |
commit | c260d2492069000ce2ce68180acc8c01fe97be4f (patch) | |
tree | dc0c0736d4b19c551bfd0d2a8b552d0db3cdbf22 /source/librpc/rpc/dcerpc.c | |
parent | f691e8ce6543a8a89a840aa98f8f26aadb0f2017 (diff) | |
download | samba-c260d2492069000ce2ce68180acc8c01fe97be4f.tar.gz samba-c260d2492069000ce2ce68180acc8c01fe97be4f.tar.xz samba-c260d2492069000ce2ce68180acc8c01fe97be4f.zip |
r1872: revert -r 1845 because the caling function should look at the fault_code
when it gets NT_STATUS_NET_WRITE_FAULT
metze
Diffstat (limited to 'source/librpc/rpc/dcerpc.c')
-rw-r--r-- | source/librpc/rpc/dcerpc.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/source/librpc/rpc/dcerpc.c b/source/librpc/rpc/dcerpc.c index edd0469d6e5..438a9a4cf36 100644 --- a/source/librpc/rpc/dcerpc.c +++ b/source/librpc/rpc/dcerpc.c @@ -95,16 +95,6 @@ void dcerpc_set_auth_length(DATA_BLOB *blob, uint16_t v) } } -NTSTATUS dcerpc_map_fault2ntstatus(uint32_t fault_code) -{ - switch (fault_code) { - case DCERPC_FAULT_LOGON_FAILURE: - return NT_STATUS_LOGON_FAILURE; - } - - return NT_STATUS_NET_WRITE_FAULT; -} - /* parse a data blob into a dcerpc_packet structure. This handles both input and output packets @@ -626,7 +616,7 @@ NTSTATUS dcerpc_request(struct dcerpc_pipe *p, if (pkt.ptype == DCERPC_PKT_FAULT) { DEBUG(5,("rpc fault 0x%x\n", pkt.u.fault.status)); p->last_fault_code = pkt.u.fault.status; - return dcerpc_map_fault2ntstatus(pkt.u.fault.status); + return NT_STATUS_NET_WRITE_FAULT; } if (pkt.ptype != DCERPC_PKT_RESPONSE) { @@ -661,7 +651,7 @@ NTSTATUS dcerpc_request(struct dcerpc_pipe *p, if (pkt.ptype == DCERPC_PKT_FAULT) { p->last_fault_code = pkt.u.fault.status; - return dcerpc_map_fault2ntstatus(pkt.u.fault.status); + return NT_STATUS_NET_WRITE_FAULT; } if (pkt.ptype != DCERPC_PKT_RESPONSE) { |