diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-11-21 17:51:01 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-11-21 17:51:01 +0000 |
commit | ac4c56a26cc487b32bf1b3be3844e177c473b176 (patch) | |
tree | e38c66eb255c4e232085a4f266755cbeeaf410af /src/libserver | |
parent | afcda997e027f9ce5c557c933445c66c9441be6b (diff) | |
download | rspamd-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.cxx | 1 |
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, ¬ice_cmd, -1, nullptr, |