aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-11-21 17:51:01 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-11-21 17:51:01 +0000
commitac4c56a26cc487b32bf1b3be3844e177c473b176 (patch)
treee38c66eb255c4e232085a4f266755cbeeaf410af /src/libserver
parentafcda997e027f9ce5c557c933445c66c9441be6b (diff)
downloadrspamd-ac4c56a26cc487b32bf1b3be3844e177c473b176.tar.gz
rspamd-ac4c56a26cc487b32bf1b3be3844e177c473b176.zip
[CritFix] Fill path field in hyperscan notice command
Reported by: @moisseev
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/hyperscan_tools.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libserver/hyperscan_tools.cxx b/src/libserver/hyperscan_tools.cxx
index 2499b21ec..b6c16e562 100644
--- a/src/libserver/hyperscan_tools.cxx
+++ b/src/libserver/hyperscan_tools.cxx
@@ -489,6 +489,7 @@ rspamd_hyperscan_notice_known(const char *fname)
}
else {
notice_cmd.type = RSPAMD_NOTICE_HYPERSCAN_CACHE;
+ rspamd_strlcpy(notice_cmd.cmd.hyperscan_cache_file.path, fname, sizeof(notice_cmd.cmd.hyperscan_cache_file.path));
rspamd_srv_send_command(rspamd_current_worker,
rspamd_current_worker->srv->event_loop, &notice_cmd, -1,
nullptr,