]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Fail if mail_attachment_detection_options has invalid options
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 26 Apr 2018 13:41:55 +0000 (16:41 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 30 Apr 2018 13:03:41 +0000 (16:03 +0300)
src/lib-storage/mail-storage-settings.c

index 1ad9fa6fc1ece0d0186927f733740af154b36451..7ebebe29182f189deca2a47e13a6c62ba4dd65b8 100644 (file)
@@ -545,6 +545,10 @@ static bool mail_storage_settings_check(void *_set, pool_t pool,
                        } else if (strncmp(opt, "content-type=", 13) == 0) {
                                const char *value = p_strdup(pool, opt+13);
                                array_append(&content_types, &value, 1);
+                       } else {
+                               *error_r = t_strdup_printf("mail_attachment_detection_options: "
+                                       "Unknown option: %s", opt);
+                               return FALSE;
                        }
                        options++;
                }