]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm log errors: Fix potential hang
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 10 Aug 2023 13:46:58 +0000 (16:46 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 22 Aug 2023 06:13:20 +0000 (06:13 +0000)
src/doveadm/doveadm-log.c

index e9cb74bd46974e0575f82353836fb50b8a0cc20b..6d2b54e138f306b3ae6ccc79952eeccb1e76a0cc 100644 (file)
@@ -325,6 +325,7 @@ cmd_log_error_next(struct event *event, struct istream *input,
 
        if (line[0] == '\0') {
                /* end of lines reply from master */
+               i_stream_close(input);
                return FALSE;
        }