mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r1872: revert -r 1845 because the caling function should look at the fault_code
when it gets NT_STATUS_NET_WRITE_FAULT
metze
(This used to be commit 084845c1ab
)
This commit is contained in:
parent
84da00004b
commit
70f457bd1a
@ -102,7 +102,7 @@ pidl "
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (dce_call->fault_code != 0) {
|
if (dce_call->fault_code != 0) {
|
||||||
return dcerpc_map_fault2ntstatus(dce_call->fault_code);
|
return NT_STATUS_NET_WRITE_FAULT;
|
||||||
}
|
}
|
||||||
return NT_STATUS_OK;
|
return NT_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
@ -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
|
parse a data blob into a dcerpc_packet structure. This handles both
|
||||||
input and output packets
|
input and output packets
|
||||||
@ -626,7 +616,7 @@ NTSTATUS dcerpc_request(struct dcerpc_pipe *p,
|
|||||||
if (pkt.ptype == DCERPC_PKT_FAULT) {
|
if (pkt.ptype == DCERPC_PKT_FAULT) {
|
||||||
DEBUG(5,("rpc fault 0x%x\n", pkt.u.fault.status));
|
DEBUG(5,("rpc fault 0x%x\n", pkt.u.fault.status));
|
||||||
p->last_fault_code = 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_RESPONSE) {
|
||||||
@ -661,7 +651,7 @@ NTSTATUS dcerpc_request(struct dcerpc_pipe *p,
|
|||||||
|
|
||||||
if (pkt.ptype == DCERPC_PKT_FAULT) {
|
if (pkt.ptype == DCERPC_PKT_FAULT) {
|
||||||
p->last_fault_code = 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_RESPONSE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user