From b324b1639525ce4e5ad4c32b97f04e289e5c63cb Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 23 Feb 2018 14:51:07 +0000 Subject: [PATCH] {Fix] Fix monitored address in case of multiple SURBL rules MFH: rspamd-1.6 --- src/plugins/surbl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index 2beef565c..6cc8b2f3c 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -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)) { -- 2.39.5