diff options
Diffstat (limited to 'librpc/gen_ndr')
-rw-r--r-- | librpc/gen_ndr/ndr_xattr.c | 7 | ||||
-rw-r--r-- | librpc/gen_ndr/xattr.h | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/librpc/gen_ndr/ndr_xattr.c b/librpc/gen_ndr/ndr_xattr.c index 3d09f00864..adf0dffb65 100644 --- a/librpc/gen_ndr/ndr_xattr.c +++ b/librpc/gen_ndr/ndr_xattr.c @@ -606,7 +606,7 @@ _PUBLIC_ enum ndr_err_code ndr_push_security_descriptor_hash_v3(struct ndr_push NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_unique_ptr(ndr, r->sd)); NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->hash_type)); - NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->hash, XATTR_SD_HASH_SIZE)); + NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->hash, 64)); } if (ndr_flags & NDR_BUFFERS) { if (r->sd) { @@ -629,8 +629,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_security_descriptor_hash_v3(struct ndr_pull r->sd = NULL; } NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->hash_type)); - NDR_PULL_ALLOC_N(ndr, r->hash, XATTR_SD_HASH_SIZE); - NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->hash, XATTR_SD_HASH_SIZE)); + NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->hash, 64)); } if (ndr_flags & NDR_BUFFERS) { if (r->sd) { @@ -654,7 +653,7 @@ _PUBLIC_ void ndr_print_security_descriptor_hash_v3(struct ndr_print *ndr, const } ndr->depth--; ndr_print_uint16(ndr, "hash_type", r->hash_type); - ndr_print_array_uint8(ndr, "hash", r->hash, XATTR_SD_HASH_SIZE); + ndr_print_array_uint8(ndr, "hash", r->hash, 64); ndr->depth--; } diff --git a/librpc/gen_ndr/xattr.h b/librpc/gen_ndr/xattr.h index 39f1cb0884..3138e6fa24 100644 --- a/librpc/gen_ndr/xattr.h +++ b/librpc/gen_ndr/xattr.h @@ -86,7 +86,7 @@ struct security_descriptor_hash_v2 { struct security_descriptor_hash_v3 { struct security_descriptor *sd;/* [unique] */ uint16_t hash_type; - uint8_t *hash; + uint8_t hash[64]; }/* [public] */; union xattr_NTACL_Info { |