6fb8641aa5619d0c0dcd7be7570767f9688a953d |
|
30-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-compression: ostream-zlib - Require o_stream_finish() to write the trailer
It's now possible to call o_stream_flush() without the trailer getting
written.
It's also now required to call o_stream_finish() to write the trailer before
closing the ostream. This guarantees that the caller checks that the
trailer was successfully written. This isn't needed if the ostream already
failed before writing the trailer. |