From: Vsevolod Stakhov Date: Thu, 26 Feb 2015 22:55:57 +0000 (+0000) Subject: Fix initialization order. X-Git-Tag: 0.9.0~601 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=affce879ad2077d6a9e8958e5269f62c31b97558;p=thirdparty%2Frspamd.git Fix initialization order. --- diff --git a/src/plugins/lua/ip_score.lua b/src/plugins/lua/ip_score.lua index b1b937ef77..907c6773d0 100644 --- a/src/plugins/lua/ip_score.lua +++ b/src/plugins/lua/ip_score.lua @@ -176,11 +176,11 @@ local configure_ip_score_module = function() if opts['prefix'] then prefix = opts['prefix'] end - end - if opts['servers'] then - upstreams = upstream_list.create(opts['servers'], default_port) - if not upstreams then - rspamd_logger.err('no servers are specified') + if opts['servers'] then + upstreams = upstream_list.create(opts['servers'], default_port) + if not upstreams then + rspamd_logger.err('no servers are specified') + end end end end