aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Kaiser <skdovecot@smail.inf.fh-brs.de>2009-06-10 16:26:39 +0200
committerJohannes Berg <johannes@sipsolutions.net>2009-06-10 16:26:39 +0200
commit5128a3bfee97f9e47da860318d74dc4697c541e2 (patch)
treee4fa6884e182fdb2447451472080bae0dc58132e
parent6c2f6c636fc5b87d88ff5ec1774245769d3ba5dc (diff)
downloaddovecot-antispam-5128a3bfee97f9e47da860318d74dc4697c541e2.tar.gz
dovecot-antispam-5128a3bfee97f9e47da860318d74dc4697c541e2.tar.xz
dovecot-antispam-5128a3bfee97f9e47da860318d74dc4697c541e2.zip
fix off-by-one in new parsing code
-rw-r--r--antispam-plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/antispam-plugin.c b/antispam-plugin.c
index e50f926..cabc0f5 100644
--- a/antispam-plugin.c
+++ b/antispam-plugin.c
@@ -259,12 +259,12 @@ int parse_folder_setting(const char *setting, char ***strings,
t_push();
- for (i = 0; i <= NUM_MT; ++i) {
+ for (i = 0; i < NUM_MT; ++i) {
tmp = get_setting(t_strconcat(setting, pmatch_name[i].suffix,
NULL));
if (tmp) {
strings[i] = p_strsplit(global_pool, tmp, ";");
- if (i == 2) {
+ if (i == MT_PATTERN_IGNCASE) {
/* lower case the string */
char **list = strings[i];
while (*list) {