aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-05 12:49:25 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-05 13:39:26 +0000
commit05c56d4edb0263227d049a92f0097e76ece657fb (patch)
tree14018cad8df000ab55989f2c14ac24b23b6d4f87
parentdc48ac9143e0306ebca2eb780540363b0a9bbef4 (diff)
downloadrspamd-05c56d4edb0263227d049a92f0097e76ece657fb.tar.gz
rspamd-05c56d4edb0263227d049a92f0097e76ece657fb.zip
Add safety guard for rule
-rw-r--r--rules/html.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/html.lua b/rules/html.lua
index cfec9d90b..3ceaed672 100644
--- a/rules/html.lua
+++ b/rules/html.lua
@@ -29,7 +29,7 @@ local function check_html_image(task, min, max)
local len = p:get_length()
- if len >= min and len < max then
+ if hc and len >= min and len < max then
local images = hc:get_images()
if images then
for _,i in ipairs(images) do