aboutsummaryrefslogtreecommitdiffstats
path: root/rules/html.lua
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 12:49:25 +0000
commit94f5e3dcf6d79aae31a85d9cd30f5c60f83e2ab2 (patch)
treec8be366de773cc587972d653687e9bc48170641d /rules/html.lua
parentb35299b4e3a6cf75cfa19783dda35411508d2913 (diff)
downloadrspamd-94f5e3dcf6d79aae31a85d9cd30f5c60f83e2ab2.tar.gz
rspamd-94f5e3dcf6d79aae31a85d9cd30f5c60f83e2ab2.zip
Add safety guard for rule
Diffstat (limited to 'rules/html.lua')
-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