diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-26 13:23:53 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-26 13:23:53 +0100 |
commit | ed8443a06118e673a8aac123238523b22f61dcdd (patch) | |
tree | 9b471b2765cf1af1c543e1854d496e59359e9222 | |
parent | 54313a63690b0b6135fefa10290fb2558c4f5b61 (diff) | |
download | rspamd-ed8443a06118e673a8aac123238523b22f61dcdd.tar.gz rspamd-ed8443a06118e673a8aac123238523b22f61dcdd.zip |
[Fix] Fix proxying issue for unconnected sessions
-rw-r--r-- | src/rspamd_proxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c index 247c856f4..4d6ae4b6d 100644 --- a/src/rspamd_proxy.c +++ b/src/rspamd_proxy.c @@ -647,7 +647,7 @@ proxy_call_cmp_script (struct rspamd_proxy_session *session, gint cbref) lua_createtable (L, 0, session->mirror_conns->len + 1); /* Now push master results */ - if (session->master_conn->results) { + if (session->master_conn && session->master_conn->results) { lua_pushstring (L, "master"); ucl_object_push_lua (L, session->master_conn->results, true); lua_settable (L, -3); |