aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris D. Faulhaber <jedgar@FreeBSD.org>2002-03-24 23:24:42 +0000
committerChris D. Faulhaber <jedgar@FreeBSD.org>2002-03-24 23:24:42 +0000
commitae56dae3499a1d657e494492fe9257e6193ae13e (patch)
tree1bfad38eb98bf97ad8a11a29c385699964f6df26
parent75a48366cefa9b8ef0e83837d522754653238b44 (diff)
downloadsrc-ae56dae3499a1d657e494492fe9257e6193ae13e.tar.gz
src-ae56dae3499a1d657e494492fe9257e6193ae13e.zip
MFC sys/net/zlib.c 1.13: correct deflate window size check
Notes
Notes: svn path=/releng/4.4/; revision=93113
-rw-r--r--lib/libz/deflate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libz/deflate.c b/lib/libz/deflate.c
index 10bb235fa16b..9d29422ea836 100644
--- a/lib/libz/deflate.c
+++ b/lib/libz/deflate.c
@@ -242,7 +242,7 @@ int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy,
windowBits = -windowBits;
}
if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method != Z_DEFLATED ||
- windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||
+ windowBits < 9 || windowBits > 15 || level < 0 || level > 9 ||
strategy < 0 || strategy > Z_HUFFMAN_ONLY) {
return Z_STREAM_ERROR;
}