From: Stephan Bosch Date: Tue, 23 Jan 2018 20:38:27 +0000 (+0100) Subject: lib-program-client: Simplify cleanup of dot input stream in program_client_program_in... X-Git-Tag: 2.3.9~2420 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b99e1062d1fb964a3545f2b5ef87588e09185ef8;p=thirdparty%2Fdovecot%2Fcore.git lib-program-client: Simplify cleanup of dot input stream in program_client_program_input(). --- diff --git a/src/lib-program-client/program-client.c b/src/lib-program-client/program-client.c index d4acc85251..4edf38e24b 100644 --- a/src/lib-program-client/program-client.c +++ b/src/lib-program-client/program-client.c @@ -319,11 +319,8 @@ void program_client_program_input(struct program_client *pclient) res = o_stream_send_istream(output, input); switch (res) { case OSTREAM_SEND_ISTREAM_RESULT_FINISHED: - if (pclient->set.use_dotstream && - pclient->dot_input != NULL) { - i_stream_unref(&pclient->dot_input); - input = pclient->program_input; - } + i_stream_unref(&pclient->dot_input); + input = pclient->program_input; break; case OSTREAM_SEND_ISTREAM_RESULT_WAIT_INPUT: case OSTREAM_SEND_ISTREAM_RESULT_WAIT_OUTPUT: