From: Joseph Sutton Date: Thu, 24 Aug 2023 23:01:09 +0000 (+1200) Subject: claims.idl: Allow empty claim value buffers X-Git-Tag: tevent-0.16.0~626 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=571ff5f31411689e9eb67ce8df837e79bb1fef2d;p=thirdparty%2Fsamba.git claims.idl: Allow empty claim value buffers Windows doesn’t reject these, nor do we have any reason to do so. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/librpc/idl/claims.idl b/librpc/idl/claims.idl index 196db5785a0..27a46c6b649 100644 --- a/librpc/idl/claims.idl +++ b/librpc/idl/claims.idl @@ -49,17 +49,17 @@ interface claims } CLAIMS_COMPRESSION_FORMAT; typedef struct { - [range(1, 10*1024*1024)] uint32 value_count; + [range(0, 10*1024*1024)] uint32 value_count; [size_is(value_count)] int64 *values; } CLAIM_INT64; typedef struct { - [range(1, 10*1024*1024)] uint32 value_count; + [range(0, 10*1024*1024)] uint32 value_count; [size_is(value_count)] hyper *values; } CLAIM_UINT64; typedef struct { - [range(1, 10*1024*1024)] uint32 value_count; + [range(0, 10*1024*1024)] uint32 value_count; [size_is(value_count), string, charset(UTF16)] wchar_t **values; } CLAIM_STRING;