From: Stephan Bosch Date: Mon, 21 Mar 2022 11:24:53 +0000 (+0100) Subject: lib: ostream-wrapper - Don't halt/resume output upon error. X-Git-Tag: 2.4.0~3036 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b00c246c2701ca530eb69d0e3d6f0caa605c002f;p=thirdparty%2Fdovecot%2Fcore.git lib: ostream-wrapper - Don't halt/resume output upon error. --- diff --git a/src/lib/ostream-wrapper.c b/src/lib/ostream-wrapper.c index 79d2ccb3c1..a65d57fcc8 100644 --- a/src/lib/ostream-wrapper.c +++ b/src/lib/ostream-wrapper.c @@ -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 ||