]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-imap-client: imapc_settings - Explicitly disallow setting imapc_max_line_length...
authorKarl Fleischmann <karl.fleischmann@open-xchange.com>
Mon, 8 Apr 2024 13:35:39 +0000 (15:35 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:13 +0000 (12:34 +0200)
src/lib-imap-client/imapc-settings.c

index 694b4711f1cee50aaffcdc6fe3025a0f56b1c9e9..44e63d438ebcde3b8e56ccef544a2e4cc381242d 100644 (file)
@@ -177,6 +177,10 @@ static bool imapc_settings_check(void *_set, pool_t pool ATTR_UNUSED,
                *error_r = "imapc_max_idle_time must not be 0";
                return FALSE;
        }
+       if (set->imapc_max_line_length == 0) {
+               *error_r = "imapc_max_line_length must not be 0";
+               return FALSE;
+       }
        if (imapc_settings_parse_features(set, error_r) < 0)
                return FALSE;
        return TRUE;