]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: ostream-wrapper - Don't halt/resume output upon error.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Mon, 21 Mar 2022 11:24:53 +0000 (12:24 +0100)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 30 Jan 2023 19:48:46 +0000 (19:48 +0000)
src/lib/ostream-wrapper.c

index 79d2ccb3c1558289e63cd80b6eb19ee26123249e..a65d57fcc824f82383eeb3f7742f67794d995434 100644 (file)
@@ -1155,7 +1155,7 @@ int wrapper_ostream_continue(struct wrapper_ostream *wostream)
        if (ret == 0)
                wostream->flush_pending = TRUE;
 
-       if (!stream->ostream.blocking)
+       if (ret >= 0 && !stream->ostream.blocking)
                wrapper_ostream_output_manage(wostream, FALSE);
 
        if (ret < 0 || ostream->stream_errno != 0 ||