]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix proxying issue for unconnected sessions
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 26 May 2016 12:23:53 +0000 (13:23 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 26 May 2016 12:23:53 +0000 (13:23 +0100)
src/rspamd_proxy.c

index 247c856f4017f1b5612282a43de73400cb182402..4d6ae4b6d793e467f6b5f7dd5934aefa6fe0333e 100644 (file)
@@ -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);