]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: server: Fix the enforcement of the maximum DATA command message size.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 23 May 2018 13:54:53 +0000 (15:54 +0200)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 28 May 2018 06:17:09 +0000 (09:17 +0300)
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.

src/lib-smtp/smtp-server-connection.c

index e667bf305a6fd71b19e0ccf44d1f32962b94ec00..f75221b0fda70820795d81a7360ef79410faf72a 100644 (file)
@@ -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);