summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-10-10 13:25:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:38 -0500
commitb2490bb98d964f961addf0b99fb8706d46961b6f (patch)
tree70ad8782bc66bb1ecb9bec17cf9b9608ed83a99f /source4
parentaf4d8e49f73b4c92e7aa31b9ce924f3104e5b24f (diff)
downloadsamba-b2490bb98d964f961addf0b99fb8706d46961b6f.tar.gz
samba-b2490bb98d964f961addf0b99fb8706d46961b6f.tar.bz2
samba-b2490bb98d964f961addf0b99fb8706d46961b6f.zip
r10872: fix the length of the dummy XPRESS decompressed buffer
metze (This used to be commit 0a1e4498a3550721b214716d1106843bf1ff4597)
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/ndr/ndr_compression.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/librpc/ndr/ndr_compression.c b/source4/librpc/ndr/ndr_compression.c
index 9f8fc97f18..fc16faca80 100644
--- a/source4/librpc/ndr/ndr_compression.c
+++ b/source4/librpc/ndr/ndr_compression.c
@@ -161,7 +161,7 @@ static NTSTATUS ndr_pull_compression_xpress_chunk(struct ndr_pull *ndrpull,
NDR_CHECK(ndr_pull_uint32(ndrpull, NDR_SCALARS, &comp_chunk_size));
NDR_CHECK(ndr_pull_advance(ndrpull, comp_chunk_size));
- comp_chunk.length = comp_chunk_size;
+ comp_chunk.length = comp_chunk_size + 8;
comp_chunk.data = ndrpull->data + comp_chunk_offset;
DEBUG(10,("XPRESS plain_chunk_size: %08X (%u) comp_chunk_size: %08X (%u)\n",