]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: test-smtp-client-errors - Turn server-side payload read error into a debug...
authorStephan Bosch <stephan.bosch@open-xchange.com>
Mon, 13 Apr 2020 12:44:31 +0000 (14:44 +0200)
committerStephan Bosch <stephan.bosch@open-xchange.com>
Mon, 25 May 2020 15:29:02 +0000 (17:29 +0200)
This can readily occur during tests and must not issue a real error message.

src/lib-smtp/test-smtp-client-errors.c

index 79679c2862ab355a3fb8b915ae4ace1b04f3dd47..f27dc25dfcf53bb9f486f793e64e4a539eb4a98b 100644 (file)
@@ -3662,8 +3662,10 @@ server_connection_input(struct connection *_conn)
                        if (ret == 0)
                                return;
                        if (conn->dot_input->stream_errno != 0) {
-                               i_error("Failed to read message payload: %s",
-                                       i_stream_get_error(conn->dot_input));
+                               if (debug) {
+                                       i_debug("Failed to read message payload: %s",
+                                               i_stream_get_error(conn->dot_input));
+                               }
                                server_connection_deinit(&conn);
                                return;
                        }