From be0ed310b335b5098f2ba475a709c1832de10127 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 22 Sep 2010 18:55:40 -0700 Subject: [PATCH] s4:irpc: add padding to the IPRC header for 8 byte alignment As we marshall the iprc header and the payload to the ndr_push context, we should pad the irpc header to let the payload start at an 8 byte boundary. This way we get the alignment still be correct if we remove the header before passing the raw payload to the caller. As we use IRPC more and more for complex NDR marshalled structures we need to get this right, in order to not get random ndr_pull failures. metze Signed-off-by: Anatoliy Atanasov --- source4/librpc/idl/irpc.idl | 1 + 1 file changed, 1 insertion(+) diff --git a/source4/librpc/idl/irpc.idl b/source4/librpc/idl/irpc.idl index d6c4f84db9..2070d3d84f 100644 --- a/source4/librpc/idl/irpc.idl +++ b/source4/librpc/idl/irpc.idl @@ -21,6 +21,7 @@ import "misc.idl", "security.idl", "nbt.idl"; uint32 callid; irpc_flags flags; NTSTATUS status; + [flag(NDR_ALIGN8)] DATA_BLOB _pad; } irpc_header; /****************************************************** -- 2.34.1