r4637: log packets when the server code returns an DCERPC_FAULT
authorStefan Metzmacher <metze@samba.org>
Mon, 10 Jan 2005 11:14:13 +0000 (11:14 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:08:37 +0000 (13:08 -0500)
metze
(This used to be commit 64805e5dc58ad1d1fefc3e36158131fa2d531592)

source4/build/pidl/server.pm
source4/build/pidl/stub.pm

index bbb21f6e18a4a4d6c44695b978ba05800cef891c..c035b7e6bbf9e29773ec8b9d910af576e6187eb0 100644 (file)
@@ -124,6 +124,8 @@ pidl "
        }
 
        if (dce_call->fault_code != 0) {
        }
 
        if (dce_call->fault_code != 0) {
+               dcerpc_log_packet(&dcerpc_table_$name, opnum, NDR_IN,
+                                 &dce_call->pkt.u.request.stub_and_verifier);
                return NT_STATUS_NET_WRITE_FAULT;
        }
 
                return NT_STATUS_NET_WRITE_FAULT;
        }
 
index 9ef8004555a2972dd53d11baf69b3f6151dedeff..8546bbf30761faa5e3ef8bedf1e536fbccebc142 100644 (file)
@@ -131,8 +131,11 @@ pidl "
        }
 
        if (dce_call->fault_code != 0) {
        }
 
        if (dce_call->fault_code != 0) {
+               dcerpc_log_packet(&dcerpc_table_$name, opnum, NDR_IN,
+                                 &dce_call->pkt.u.request.stub_and_verifier);
                return NT_STATUS_NET_WRITE_FAULT;
        }
                return NT_STATUS_NET_WRITE_FAULT;
        }
+
        return NT_STATUS_OK;
 }
 
        return NT_STATUS_OK;
 }