summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 d4f1a2a927..bcbe8e5650 100644
--- a/source4/librpc/ndr/ndr_compression.c
+++ b/source4/librpc/ndr/ndr_compression.c
@@ -50,7 +50,7 @@ static NTSTATUS ndr_pull_compression_zlib(struct ndr_pull *subndr,
zs.next_out = outbuf.data;
zs.avail_out = outbuf.length;
- ret = inflateInit2(&zs, 15);
+ ret = inflateInit2(&zs, -15);
if (ret != Z_OK) {
return ndr_pull_error(subndr, NDR_ERR_COMPRESSION, "Bad ZLIB (PULL) inflateInit2 error %d",
ret);