diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2008-01-13 05:49:32 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2008-01-13 05:49:32 +0000 |
commit | cf9c5c1a566bda1bc3eaeee00091c457c12cc68c (patch) | |
tree | 8d8aae4a8bb167db64e23bb7f76f39014f36d45f /contrib/cvs/src/zlib.c | |
parent | 83c36f7f985e86e33d46bc7d7fc4e648ca22226b (diff) |
Notes
Diffstat (limited to 'contrib/cvs/src/zlib.c')
-rw-r--r-- | contrib/cvs/src/zlib.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/contrib/cvs/src/zlib.c b/contrib/cvs/src/zlib.c index 32c95e50d707..46ed0e6b6325 100644 --- a/contrib/cvs/src/zlib.c +++ b/contrib/cvs/src/zlib.c @@ -361,18 +361,10 @@ compress_buffer_shutdown_input (buf) struct compress_buffer *cb = (struct compress_buffer *) buf->closure; int zstatus; - /* Pick up any trailing data, such as the checksum. */ - while (1) - { - int status, nread; - char buf[100]; - - status = compress_buffer_input (cb, buf, 0, sizeof buf, &nread); - if (status == -1) - break; - if (status != 0) - return status; - } + /* Don't make any attempt to pick up trailing data since we are shutting + * down. If the client doesn't know we are shutting down, we might not + * see the EOF we are expecting. + */ zstatus = inflateEnd (&cb->zstr); if (zstatus != Z_OK) |