aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/fuzzy_storage.c2
-rw-r--r--src/plugins/lua/metadata_exporter.lua6
3 files changed, 8 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6b8a80e8e..428624ce2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -206,7 +206,7 @@ ELSE (ENABLE_LUAJIT MATCHES "ON")
ENDIF (ENABLE_LUAJIT MATCHES "ON")
IF (ENABLE_JEMALLOC MATCHES "ON" AND NOT SANITIZE)
- ProcessPackage(JEMALLOC LIBRARY jemalloc_pic jemalloc INCLUDE jemalloc.h INCLUDE_SUFFIXES include/jemalloc
+ ProcessPackage(JEMALLOC LIBRARY jemalloc_pic jemalloc INCLUDE jemalloc/jemalloc.h
ROOT ${JEMALLOC_ROOT_DIR})
SET(WITH_JEMALLOC "1")
ENDIF ()
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index 0d7a1c2a8..bc69be98c 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -1782,7 +1782,7 @@ rspamd_fuzzy_decrypt_command(struct fuzzy_session *s, unsigned char *buf, gsize
if (s->ctx->dynamic_keys) {
k = kh_get(rspamd_fuzzy_keys_hash, s->ctx->dynamic_keys, hdr.key_id);
- if (k != kh_end(s->ctx->keys)) {
+ if (k != kh_end(s->ctx->dynamic_keys)) {
key = kh_val(s->ctx->dynamic_keys, k);
}
}
diff --git a/src/plugins/lua/metadata_exporter.lua b/src/plugins/lua/metadata_exporter.lua
index de27a64aa..70f9540d1 100644
--- a/src/plugins/lua/metadata_exporter.lua
+++ b/src/plugins/lua/metadata_exporter.lua
@@ -65,6 +65,9 @@ Action: $action
Score: $score
Symbols: $symbols]],
timeout = 5.0,
+ gzip = false,
+ keepalive = false,
+ no_ssl_verify = false,
}
local function get_general_metadata(task, flatten, no_content)
@@ -340,6 +343,9 @@ local pushers = {
mime_type = rule.mime_type or settings.mime_type,
headers = hdrs,
timeout = rule.timeout or settings.timeout,
+ gzip = rule.gzip or settings.gzip,
+ keepalive = rule.keepalive or settings.keepalive,
+ no_ssl_verify = rule.no_ssl_verify or settings.no_ssl_verify,
})
end,
send_mail = function(task, formatted, rule, extra)