]> source.dussan.org Git - rspamd.git/commitdiff
{Fix] Fix monitored address in case of multiple SURBL rules
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 23 Feb 2018 14:51:07 +0000 (14:51 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 23 Feb 2018 14:51:07 +0000 (14:51 +0000)
MFH: rspamd-1.6

src/plugins/surbl.c

index 2beef565c3ae09059175910bdad792bc724ce674..6cc8b2f3c9ecf46a3cda5341281274c38b17be05 100644 (file)
@@ -525,6 +525,8 @@ surbl_module_parse_rule (const ucl_object_t* value, struct rspamd_config* cfg)
        ucl_object_t *ropts;
 
        LL_FOREACH(value, cur_rule) {
+               monitored_domain = NULL;
+
                cur = ucl_object_lookup (cur_rule, "enabled");
                if (cur != NULL && cur->type == UCL_BOOLEAN) {
                        if (!ucl_object_toboolean (cur)) {