]> 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)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 27 Apr 2018 11:35:47 +0000 (11:35 +0000)
src/lib-storage/mail-storage-settings.c

index 51762c1018ce522f02499f452cb9fea83b147fb5..e95011f6c12aa4563d8433c260f8d835aea952e0 100644 (file)
@@ -545,6 +545,10 @@ static bool mail_storage_settings_check(void *_set, pool_t pool,
                        } else if (str_begins(opt, "content-type=")) {
                                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++;
                }