From: Stephan Bosch Date: Wed, 23 May 2018 13:54:53 +0000 (+0200) Subject: lib-smtp: server: Fix the enforcement of the maximum DATA command message size. X-Git-Tag: 2.3.2.rc1~91 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b052f502bde67e1fb014ab13e80b3030c380e3b;p=thirdparty%2Fdovecot%2Fcore.git lib-smtp: server: Fix the enforcement of the maximum DATA command message size. The global setting from the server object was used, rather than the per-connection setting. The latter is usually the one that is properly set, while the global server setting is left at zero. For LMTP this meant that the 40 Mb implicit limit was still in force. --- diff --git a/src/lib-smtp/smtp-server-connection.c b/src/lib-smtp/smtp-server-connection.c index e667bf305a..f75221b0fd 100644 --- a/src/lib-smtp/smtp-server-connection.c +++ b/src/lib-smtp/smtp-server-connection.c @@ -288,7 +288,7 @@ smtp_server_connection_ready(struct smtp_server_connection *conn) smtp_server_connection_update_rawlog(conn); conn->smtp_parser = smtp_command_parser_init(conn->conn.input, - &conn->server->set.command_limits); + &conn->set.command_limits); o_stream_set_flush_callback(conn->conn.output, smtp_server_connection_output, conn);