summaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/CMakeLists.txt1
-rw-r--r--src/libserver/cfg_rcl.c1
-rw-r--r--src/libserver/cfg_utils.c1
-rw-r--r--src/libserver/protocol.c1
-rw-r--r--src/libserver/task.c3
-rw-r--r--src/libserver/task.h2
6 files changed, 5 insertions, 4 deletions
diff --git a/src/libserver/CMakeLists.txt b/src/libserver/CMakeLists.txt
index b46a88ffd..290e4c301 100644
--- a/src/libserver/CMakeLists.txt
+++ b/src/libserver/CMakeLists.txt
@@ -12,7 +12,6 @@ SET(LIBRSPAMDSERVERSRC
protocol.c
proxy.c
roll_history.c
- settings.c
spf.c
statfile.c
statfile_sync.c
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index be9f63593..6347e3869 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -23,7 +23,6 @@
#include "cfg_rcl.h"
#include "main.h"
-#include "settings.h"
#include "cfg_file.h"
#include "lua/lua_common.h"
#include "expressions.h"
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index d041faa50..71821244a 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -28,7 +28,6 @@
#include "cfg_file.h"
#include "main.h"
#include "filter.h"
-#include "settings.h"
#include "classifiers/classifiers.h"
#include "lua/lua_common.h"
#include "kvstorage_config.h"
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c
index 6f22b5f34..fc4096f8c 100644
--- a/src/libserver/protocol.c
+++ b/src/libserver/protocol.c
@@ -26,7 +26,6 @@
#include "main.h"
#include "util.h"
#include "cfg_file.h"
-#include "settings.h"
#include "message.h"
/* Max line size */
diff --git a/src/libserver/task.c b/src/libserver/task.c
index d19362fca..a46a70604 100644
--- a/src/libserver/task.c
+++ b/src/libserver/task.c
@@ -249,6 +249,9 @@ rspamd_task_free (struct rspamd_task *task, gboolean is_soft)
if (task->sock != -1) {
close (task->sock);
}
+ if (task->settings != NULL) {
+ ucl_object_unref (task->settings);
+ }
rspamd_mempool_delete (task->task_pool);
g_slice_free1 (sizeof (struct rspamd_task), task);
}
diff --git a/src/libserver/task.h b/src/libserver/task.h
index 1d2b299ec..4c3462d9a 100644
--- a/src/libserver/task.h
+++ b/src/libserver/task.h
@@ -138,6 +138,8 @@ struct rspamd_task {
enum rspamd_metric_action action; /**< Action of pre filters */
gchar *str; /**< String describing action */
} pre_result; /**< Result of pre-filters */
+
+ ucl_object_t *settings; /**< Settings applied to task */
};
/**