s3-rpc_server: always print the full PDU.
authorGünther Deschner <gd@samba.org>
Fri, 26 Aug 2016 13:39:56 +0000 (15:39 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 17 Dec 2019 07:58:39 +0000 (07:58 +0000)
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/rpc_server/rpc_server.c

index c0c0f9a22a4db313a92aa944b13f19029ed48b4c..5550121cf0937fca46f753ffac6046ddac347ebc 100644 (file)
@@ -33,6 +33,7 @@
 #include "rpc_server/rpc_ncacn_np.h"
 #include "rpc_server/srv_pipe_hnd.h"
 #include "rpc_server/srv_pipe.h"
+#include "librpc/gen_ndr/ndr_dcerpc.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_RPC_SRV
@@ -971,6 +972,9 @@ void dcerpc_ncacn_packet_process(struct tevent_req *subreq)
        }
        DEBUG(10, ("PDU is in %s Endian format!\n",
                   ncacn_conn->p->endian ? "Big" : "Little"));
+       if (DEBUGLEVEL >= 10) {
+               NDR_PRINT_DEBUG(ncacn_packet, pkt);
+       }
        process_complete_pdu(ncacn_conn->p, pkt);
 
        /* reset pipe state and free PDU */