]> source.dussan.org Git - rspamd.git/commitdiff
Fix RBL module 80/head
authorAlexey <AlexeySa@users.noreply.github.com>
Mon, 2 Jun 2014 09:50:58 +0000 (13:50 +0400)
committerAlexey <AlexeySa@users.noreply.github.com>
Mon, 2 Jun 2014 09:50:58 +0000 (13:50 +0400)
src/plugins/lua/rbl.lua

index 3738af3cf5b2336abc651a2d0d5ee07fbe6b2731..7f2640a80e44d0ab639c4b4c675382aa69329c91 100644 (file)
@@ -25,7 +25,7 @@ local function rbl_cb (task)
                                                local foundrc = false
                                                for s,i in pairs(thisrbl['returncodes']) do
                                                        if type(i) == 'string' then
-                                                               if string.find(ipstr, "^" .. v .. "$") then
+                                                               if string.find(ipstr, "^" .. i .. "$") then
                                                                        foundrc = true
                                                                        task:insert_result(s, 1)
                                                                        break