summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2015-02-17 09:46:40 +0200
committerAndrew Lewis <nerf@judo.za.org>2015-02-17 12:48:23 +0200
commita1e7c618420c72364251f072e35834a48ab6a9a4 (patch)
treee5f80ed262436c91e42111f96df3eb447a4f2c28 /src/plugins
parentf239a10d2ecdf959ef0b8e4151af3aa49419eaeb (diff)
downloadrspamd-a1e7c618420c72364251f072e35834a48ab6a9a4.tar.gz
rspamd-a1e7c618420c72364251f072e35834a48ab6a9a4.zip
Unbreak operation of rbl.lua in certain instances
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/rbl.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua
index 82955f13c..198e725f4 100644
--- a/src/plugins/lua/rbl.lua
+++ b/src/plugins/lua/rbl.lua
@@ -36,10 +36,7 @@ local private_ips = nil
local rspamd_logger = require "rspamd_logger"
local rspamd_ip = require "rspamd_ip"
-local function validate_dns(lstr, rstr)
- if (lstr:len() + rstr:len()) > 252 then
- return false
- end
+local function validate_dns(lstr)
for v in lstr:gmatch("[^%.]+") do
if not v:match("^[%w-]+$") or v:len() > 63
or v:match("^-") or v:match("-$") then
@@ -144,7 +141,7 @@ local function rbl_cb (task)
if not havegot['helo'] then
havegot['helo'] = task:get_helo()
if havegot['helo'] == nil or
- not validate_dns(havegot['helo'], rbl['rbl']) then
+ not validate_dns(havegot['helo']) then
notgot['helo'] = true
return
end