]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
claims.idl: Allow empty claim value buffers
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 24 Aug 2023 23:01:09 +0000 (11:01 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Sep 2023 21:35:29 +0000 (21:35 +0000)
Windows doesn’t reject these, nor do we have any reason to do so.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
librpc/idl/claims.idl

index 196db5785a01e1d4d8411e3f344689250235078a..27a46c6b64912f295ae1ed9c872ce256230f3d51 100644 (file)
@@ -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;