diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-13 13:46:40 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-13 14:42:22 +0000 |
commit | 81eb3c648eda46f1f3fa2e6110f16f7022232b28 (patch) | |
tree | 31d3a11a2fdbb3c369256549f53ad4ff27306756 /src/lua/lua_util.c | |
parent | 57b8a62d05a3f177ea1bc768b1d9706bb62d5aed (diff) | |
download | rspamd-81eb3c648eda46f1f3fa2e6110f16f7022232b28.tar.gz rspamd-81eb3c648eda46f1f3fa2e6110f16f7022232b28.zip |
[Feature] Allow to cache and use flexible protocol reply
Diffstat (limited to 'src/lua/lua_util.c')
-rw-r--r-- | src/lua/lua_util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c index 0b4d8dd9c..064aa53f8 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -624,7 +624,7 @@ lua_util_task_fin (struct rspamd_task *task, void *ud) { ucl_object_t **target = ud; - *target = rspamd_protocol_write_ucl (task); + *target = rspamd_protocol_write_ucl (task, RSPAMD_PROTOCOL_DEFAULT); rdns_resolver_release (task->resolver->r); return TRUE; @@ -669,7 +669,8 @@ lua_util_process_message (lua_State *L) ucl_object_unref (res); } else { - ucl_object_push_lua (L, rspamd_protocol_write_ucl (task), + ucl_object_push_lua (L, + rspamd_protocol_write_ucl (task, RSPAMD_PROTOCOL_DEFAULT), true); rdns_resolver_release (task->resolver->r); rspamd_session_destroy (task->s); |