1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:mdssvc: marshalling: fix unpacking empty CNID structure

Pass the correct tag member tag.size to sl_unpack_CNID(), not
tag.length. tag.size is the size actually used in a buffer of size tag.length.

Cf other users of tag.size that already do this correctly, this was only wrong
in this place.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2019-05-03 22:52:33 +02:00 committed by Jeremy Allison
parent d67c98184a
commit 29ef030624

View File

@ -1037,7 +1037,7 @@ static ssize_t sl_unpack_cpx(DALLOC_CTX *query,
}
result = sl_unpack_CNID(query, buf, offset, bufsize,
tag.length, encoding);
tag.size, encoding);
if (result == -1) {
return -1;
}