]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-program-client: Simplify cleanup of dot input stream in program_client_program_in...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Tue, 23 Jan 2018 20:38:27 +0000 (21:38 +0100)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Fri, 26 Jan 2018 19:17:11 +0000 (20:17 +0100)
src/lib-program-client/program-client.c

index d4acc85251b9fd66442c0198e93ca641e7524cc1..4edf38e24b39ffbb2112b7e5769bc017f0c4bc5c 100644 (file)
@@ -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: