}
}
-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
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) {
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) {