From: Alexey Date: Sat, 5 Apr 2014 08:33:13 +0000 (-0700) Subject: Hfilter: small fixes X-Git-Tag: 0.7.0~334^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dfd703101b45ede6190e6f5dd51d27c94769356;p=thirdparty%2Frspamd.git Hfilter: small fixes --- diff --git a/conf/lua/hfilter.lua b/conf/lua/hfilter.lua index f7c0751edd..a619e8f873 100644 --- a/conf/lua/hfilter.lua +++ b/conf/lua/hfilter.lua @@ -1,5 +1,5 @@ -- --- Copyright (c) 2013, Alexey Savelyev +-- Copyright (c) 2013-2014, Alexey Savelyev -- E-mail: info@homeweb.ru -- WWW: http://homeweb.ru -- @@ -161,7 +161,7 @@ local function hfilter(task) --IP-- local ip = false local rip = task:get_from_ip() - if rip:is_valid() then + if rip and rip:is_valid() then ip = rip:to_string() end