]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm compress: Use compression_handler.create_ostream_auto() API
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Sat, 29 Jul 2023 18:47:00 +0000 (21:47 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:10 +0000 (12:34 +0200)
src/doveadm/doveadm-compress.c

index 1044ca9bd9257cee6e16981b6f10de2268580c8b..a70d11fada4add8382192eb32dccf829f72079c8 100644 (file)
@@ -256,7 +256,8 @@ static void server_input(struct client *client)
 
                        e_info(client->event, "<Compression started>");
                        input = client->handler->create_istream(client->input);
-                       output = client->handler->create_ostream(client->output, 6);
+                       output = client->handler->
+                               create_ostream_auto(client->output, client->event);
                        i_stream_unref(&client->input);
                        o_stream_unref(&client->output);
                        client->input = input;