From: Vsevolod Stakhov Date: Fri, 23 Feb 2018 14:51:07 +0000 (+0000) Subject: {Fix] Fix monitored address in case of multiple SURBL rules X-Git-Tag: 1.7.0~139 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b324b1639525ce4e5ad4c32b97f04e289e5c63cb;p=rspamd.git {Fix] Fix monitored address in case of multiple SURBL rules MFH: rspamd-1.6 --- 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)) {