]> source.dussan.org Git - rspamd.git/commitdiff
Skip group addresses. 0.4.5
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 21 Nov 2011 14:52:54 +0000 (17:52 +0300)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 21 Nov 2011 14:52:54 +0000 (17:52 +0300)
src/lua/lua_task.c

index 8464a6c2f30df0b521919a76f4850b35d9e6fdc9..4780391495262e0650f7b91d793cfb0ef85e65b6 100644 (file)
@@ -729,7 +729,7 @@ lua_push_internet_address (lua_State *L, InternetAddress *ia)
        return FALSE;
 #else
        InternetAddressMailbox        *iamb;
-       if (ia) {
+       if (ia && INTERNET_ADDRESS_IS_MAILBOX (ia)) {
                lua_newtable (L);
                iamb = INTERNET_ADDRESS_MAILBOX (ia);
                lua_set_table_index (L, "name", internet_address_get_name (ia));