From: Ralph Boehme Date: Fri, 18 Jun 2021 14:32:53 +0000 (+0200) Subject: idl: declare token array of storage_offload_token as in-line X-Git-Tag: ldb-2.5.0~499 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3afd4bd61033773312605102f7203ef54e2e0986;p=thirdparty%2Fsamba.git idl: declare token array of storage_offload_token as in-line This ensures the order of the struct element is the same as in the IDL definition. For an conformant array using the [sizeis(n)] syntax the sizeis member is stored as first element in the marshall buffer. Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/librpc/idl/ioctl.idl b/librpc/idl/ioctl.idl index 390e8562f69..b2f3aec54d9 100644 --- a/librpc/idl/ioctl.idl +++ b/librpc/idl/ioctl.idl @@ -55,7 +55,7 @@ interface copychunk uint32 token_type; uint8 reserved[2]; uint16 token_id_len; - [size_is(token_id_len)] uint8 token[]; + uint8 token[token_id_len]; } storage_offload_token; typedef [public] struct {