]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: smtp-client - Fix maximum line length to include CRLF.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Fri, 28 Jan 2022 02:14:16 +0000 (03:14 +0100)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 28 Jan 2022 13:22:35 +0000 (14:22 +0100)
src/lib-smtp/smtp-client-private.h

index 8f0d81e20d430993277081d4e1f552d9c7598ad0..b5b9cccff4c7f390f967a57853aec5623a0703c8 100644 (file)
@@ -10,7 +10,7 @@
 #include "smtp-client-transaction.h"
 #include "smtp-client-connection.h"
 
-#define SMTP_CLIENT_BASE_LINE_LENGTH_LIMIT 512
+#define SMTP_CLIENT_BASE_LINE_LENGTH_LIMIT (512 - 2)
 #define SMTP_CLIENT_DATA_CHUNK_SIZE IO_BLOCK_SIZE
 
 struct smtp_client_command {