diff options
author | Aurelien Aptel <aaptel@suse.com> | 2017-06-30 15:07:31 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-07-19 21:22:13 +0200 |
commit | e54adf516e5c6546e45fb0efbb43f3c45f8917d1 (patch) | |
tree | ee500789c3426818aafeb4d51f8c696ffda4b458 /librpc | |
parent | 0181fcc4aaa730e3a88ff5d397145332f4013950 (diff) | |
download | samba-e54adf516e5c6546e45fb0efbb43f3c45f8917d1.tar.gz |
ndr_compression: use MAX_WBITS constant
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r-- | librpc/ndr/ndr_compression.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/librpc/ndr/ndr_compression.c b/librpc/ndr/ndr_compression.c index d291df5ad8c..e00bcb27364 100644 --- a/librpc/ndr/ndr_compression.c +++ b/librpc/ndr/ndr_compression.c @@ -97,7 +97,7 @@ static enum ndr_err_code ndr_pull_compression_mszip_chunk(struct ndr_pull *ndrpu z->zfree = ndr_zlib_free; z->opaque = ndrpull; - z_ret = inflateInit2(z, -15); + z_ret = inflateInit2(z, -MAX_WBITS); if (z_ret != Z_OK) { return ndr_pull_error(ndrpull, NDR_ERR_COMPRESSION, "Bad inflateInit2 error %s(%d) (PULL)", |