]> source.dussan.org Git - rspamd.git/commitdiff
Fix wrong attribute name.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 4 Dec 2013 17:36:57 +0000 (17:36 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 4 Dec 2013 17:36:57 +0000 (17:36 +0000)
src/plugins/fuzzy_check.c

index 28ccf7c37845dca0a7cf9b4543968cd503e1217c..9cc9a7e885fa4ef258134ea5d063dab775feef30 100644 (file)
@@ -167,7 +167,7 @@ parse_flags_string (struct fuzzy_rule *rule, struct config_file *cfg, ucl_object
                        map->symbol = sym;
                        elt = ucl_object_find_key (val, "flag");
                        if (elt != NULL && ucl_obj_toint_safe (elt, &map->fuzzy_flag)) {
-                               elt = ucl_object_find_key (val, "weight");
+                               elt = ucl_object_find_key (val, "max_score");
                                if (elt != NULL) {
                                        map->weight = ucl_obj_todouble (elt);
                                }