diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-03-29 22:35:37 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-04-15 09:34:03 +0200 |
commit | a8e81c25ebe7a673c2c6e046dd6a0a829c4af409 (patch) | |
tree | c6a33e761005fb040f6d94b6944f9c3a6ffb24a7 /pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm | |
parent | fed16f4015f8209dc4705fc1464fc45a093d9349 (diff) | |
download | samba-a8e81c25ebe7a673c2c6e046dd6a0a829c4af409.tar.gz samba-a8e81c25ebe7a673c2c6e046dd6a0a829c4af409.tar.bz2 samba-a8e81c25ebe7a673c2c6e046dd6a0a829c4af409.zip |
pidl:Samba4/NDR/Client: map NT_STATUS_NET_WRITE_FAULT to the matching NT_STATUS_RPC_* code
metze
Diffstat (limited to 'pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm')
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm index 43fe61196e..189eb9e8f0 100644 --- a/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm +++ b/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm @@ -60,6 +60,10 @@ sub ParseFunctionOldRecv($$$) status = dcerpc_ndr_request_recv(rreq); + if (NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) { + status = dcerpc_fault_to_nt_status(p->last_fault_code); + } + if (NT_STATUS_IS_OK(status) && (p->conn->flags & DCERPC_DEBUG_PRINT_OUT)) { NDR_PRINT_OUT_DEBUG($name, r); } @@ -290,6 +294,10 @@ sub ParseFunction_r_Sync($$$) status = dcerpc_ndr_request(p, NULL, &ndr_table_$interface->{NAME}, NDR_$uname, mem_ctx, r); + if (NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) { + status = dcerpc_fault_to_nt_status(p->last_fault_code); + } + if (NT_STATUS_IS_OK(status) && (p->conn->flags & DCERPC_DEBUG_PRINT_OUT)) { NDR_PRINT_OUT_DEBUG($name, r); } |