]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
*-login: Also increase MASTER_AUTH_MAX_DATA_SIZE and add a check to make sure it...
authorTimo Sirainen <tss@iki.fi>
Thu, 30 Oct 2014 02:41:11 +0000 (04:41 +0200)
committerTimo Sirainen <tss@iki.fi>
Thu, 30 Oct 2014 02:41:11 +0000 (04:41 +0200)
src/imap-login/client.c
src/lib-master/master-auth.h

index b8db333b76e4955a78e121dc14dbb3b761af571e..487f341df0b923dd63d9a628cdb572de7f96ca7f 100644 (file)
 
 #include <stdlib.h>
 
+#if LOGIN_MAX_INBUF_SIZE < 1024+2
+#  error LOGIN_MAX_INBUF_SIZE too short to fit all ID command parameters
+#endif
+
 /* maximum length for IMAP command line. */
 #define MAX_IMAP_LINE 8192
 
index 831d053bd7a3815e879ec3f749b0ef147434371d..fbf7538f320d521a03951584dbb380b0d5afb2ef 100644 (file)
@@ -18,7 +18,7 @@ struct master_service;
    values may be max. 1024 bytes plus 2 for "" quotes. (Although it could be
    even double of that when value is full of \" quotes, but for now lets not
    make it too easy to waste memory..) */
-#define MASTER_AUTH_MAX_DATA_SIZE (1024 + 128 + 33 + 2)
+#define MASTER_AUTH_MAX_DATA_SIZE (1024 + 128 + 64 + 2)
 
 #define MASTER_AUTH_ERRMSG_INTERNAL_FAILURE \
        "Internal error occurred. Refer to server log for more information."