From 81d730edb59d3ab000fc28b23c3758fffca60c98 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 13 Oct 2015 16:00:40 +0200 Subject: [PATCH] dcerpc.idl: replace dcerpc_response._pad with a uint8 reserved typedef struct { uint32 alloc_hint; uint16 context_id; uint8 cancel_count; [value(0)] uint8 reserved; [flag(NDR_REMAINING)] DATA_BLOB stub_and_verifier; } dcerpc_response; - the generic dcerpc header has a size of 16 bytes - alloc_hint, context_id, cancel_count and reserved are 8 bytes together So stub_and_verifier is 8 byte aligned at offset 24. Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- librpc/idl/dcerpc.idl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librpc/idl/dcerpc.idl b/librpc/idl/dcerpc.idl index 01816eeae7b..c295d7a0cf5 100644 --- a/librpc/idl/dcerpc.idl +++ b/librpc/idl/dcerpc.idl @@ -146,7 +146,7 @@ interface dcerpc uint32 alloc_hint; uint16 context_id; uint8 cancel_count; - [flag(NDR_ALIGN8)] DATA_BLOB _pad; + [value(0)] uint8 reserved; [flag(NDR_REMAINING)] DATA_BLOB stub_and_verifier; } dcerpc_response; -- 2.11.4.GIT