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
commitf965912d94926b0bf48c8da947a2e52bfca5996d (patch)
treee738fbf258e1f3c51fa6328cf6e6c8900d8370c3
parent164e0ce6ed97d03f5f931a63f5e3757331eb5822 (diff)
downloadsrc-f965912d94926b0bf48c8da947a2e52bfca5996d.tar.gz
src-f965912d94926b0bf48c8da947a2e52bfca5996d.zip
MFC sys/net/zlib.c 1.13: correct deflate window size check
Notes
Notes: svn path=/releng/4.3/; 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;
}