]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-compression: ostream-zlib - Fix signed vs unsigned comparison.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 5 Jan 2022 01:27:48 +0000 (01:27 +0000)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 5 Jan 2022 11:25:35 +0000 (11:25 +0000)
src/lib-compression/ostream-zlib.c

index 82c5a03a6cb99356d97582fc38065d5fe2ddbc76..72679174a3c682b94688dd5c5042593c7af67f3e 100644 (file)
@@ -69,7 +69,7 @@ static int o_stream_zlib_send_gz_header(struct zlib_ostream *zstream)
                o_stream_copy_error_from_parent(&zstream->ostream);
                return -1;
        }
-       i_assert(ret <= zstream->header_bytes_left);
+       i_assert((size_t)ret <= zstream->header_bytes_left);
        zstream->header_bytes_left -= ret;
        return zstream->header_bytes_left == 0 ? 1 : 0;
 }