]> source.dussan.org Git - rspamd.git/commitdiff
Fix settings 309/head
authorAndrew Lewis <nerf@judo.za.org>
Sat, 27 Jun 2015 15:03:18 +0000 (17:03 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Sat, 27 Jun 2015 15:03:36 +0000 (17:03 +0200)
src/plugins/lua/settings.lua

index 1ea87e29e2a8463de1634aaf7f6ecab504cc97fa..643d2a37882cdf28ba281eb4a8ae4b31bb3bc3f6 100644 (file)
@@ -29,6 +29,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 -- https://rspamd.com/doc/configuration/settings.html
 
 local set_section = rspamd_config:get_all_opt("settings")
+if not set_section then return end
 local settings = {
   [1] = {},
   [2] = {},