aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-27 17:14:52 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-27 17:14:52 +0000
commit270365edd71f0101b6ce6317286e06a8016a43a9 (patch)
tree1502695d7b156e58e3dded5ea2b5319a3d65195c /src/lua/lua_task.c
parentf294479f789d43eda71d330a81af8bb2fd147603 (diff)
downloadrspamd-270365edd71f0101b6ce6317286e06a8016a43a9.tar.gz
rspamd-270365edd71f0101b6ce6317286e06a8016a43a9.zip
[Minor] Lua_task: Add more consistency to get_from
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index fd1877daf..c68df4e81 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -3729,7 +3729,7 @@ lua_task_get_from (lua_State *L)
break;
}
- if (addrs) {
+ if (addrs && addrs->len > 0 {
lua_push_emails_address_list (L, addrs, what & ~RSPAMD_ADDRESS_MASK);
}
else if (addr) {