summaryrefslogtreecommitdiffstats
path: root/src/plugins/dkim_check.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-20 13:05:56 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-20 13:05:56 +0000
commitcd2f92e40eca3ac7036e5cac9f90969a8d26655f (patch)
tree45048c70954fe8ca960252aecf082a3bdb828e59 /src/plugins/dkim_check.c
parent64604af61d3f1d8a7ada3eabe5fa62611620d16b (diff)
downloadrspamd-cd2f92e40eca3ac7036e5cac9f90969a8d26655f.tar.gz
rspamd-cd2f92e40eca3ac7036e5cac9f90969a8d26655f.zip
[Feature] Support User-Agent in HTTP requests
Issue: #2750 Closes: #2750
Diffstat (limited to 'src/plugins/dkim_check.c')
-rw-r--r--src/plugins/dkim_check.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c
index b7e9e53ee..f7600552b 100644
--- a/src/plugins/dkim_check.c
+++ b/src/plugins/dkim_check.c
@@ -1545,7 +1545,13 @@ dkim_module_lua_push_verify_result (struct rspamd_dkim_lua_verify_cbdata *cbd,
ptask = lua_newuserdata (cbd->L, sizeof (*ptask));
*ptask = task;
lua_pushboolean (cbd->L, success);
- lua_pushstring (cbd->L, error_str);
+
+ if (error_str) {
+ lua_pushstring (cbd->L, error_str);
+ }
+ else {
+ lua_pushnil (cbd->L);
+ }
if (cbd->ctx) {
if (res->domain) {