idl: declare token array of storage_offload_token as in-line
authorRalph Boehme <slow@samba.org>
Fri, 18 Jun 2021 14:32:53 +0000 (16:32 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 8 Oct 2021 19:28:32 +0000 (19:28 +0000)
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 <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
librpc/idl/ioctl.idl

index 390e8562f69f9fc0f72eb337237913ad595f6d9d..b2f3aec54d95dd5b3a13d1906dfc3783826cc06d 100644 (file)
@@ -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 {