]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] MX check: require redis settings for registration 1165/head
authorAndrew Lewis <nerf@judo.za.org>
Tue, 22 Nov 2016 14:58:04 +0000 (16:58 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 22 Nov 2016 14:58:04 +0000 (16:58 +0200)
src/plugins/lua/mx_check.lua

index ca966909cf4e1978dcc9a75e749d87df320bedd2..6d333350d73a225d8255ac085544ed47de997f43 100644 (file)
@@ -253,6 +253,10 @@ if not (opts and type(opts) == 'table') then
 end
 if opts then
   redis_params = rspamd_parse_redis_server('mx_check')
+  if not redis_params then
+    rspamd_logger.errx(rspamd_config, 'no redis servers are specified, disabling module')
+    return
+  end
   for k,v in pairs(opts) do
     settings[k] = v
   end