]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Lua_task: Add more consistency to get_from
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 27 Feb 2020 17:14:52 +0000 (17:14 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 27 Feb 2020 17:14:52 +0000 (17:14 +0000)
src/lua/lua_task.c

index fd1877daf72225bd00d4e3ba1ac685f995ad9dd7..c68df4e81128c46bc86210386058facbc4878f58 100644 (file)
@@ -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) {