aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-25 10:43:07 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-25 10:44:18 +0100
commitd21fdd376f883510ae2bf5de7307eb59d84cb614 (patch)
treebcc09218952f1b97d84c93137c3eb8171a781605 /src/lua/lua_task.c
parentcf52b4f1cee94112a58e36c076ea7004cb290c87 (diff)
downloadrspamd-d21fdd376f883510ae2bf5de7307eb59d84cb614.tar.gz
rspamd-d21fdd376f883510ae2bf5de7307eb59d84cb614.zip
[Fix] Fix setting of email address
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 2ed2419e2..9edfd39d4 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -2076,7 +2076,7 @@ lua_import_email_address (lua_State *L, struct rspamd_task *task,
p = lua_tolstring (L, -1, &len);
addr->name = (const gchar *)rspamd_mempool_alloc (task->task_pool, len);
memcpy ((gchar *)addr->name, p, len);
- addr->addr_len = len;
+ addr->name_len = len;
}
lua_pop (L, 1);
@@ -2152,6 +2152,7 @@ lua_import_email_address (lua_State *L, struct rspamd_task *task,
}
lua_pop (L, 1);
+ addr->flags = RSPAMD_EMAIL_ADDR_VALID;
*paddr = addr;