From 270365edd71f0101b6ce6317286e06a8016a43a9 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 27 Feb 2020 17:14:52 +0000 Subject: [PATCH] [Minor] Lua_task: Add more consistency to get_from --- src/lua/lua_task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5