From: Vsevolod Stakhov Date: Mon, 21 Nov 2022 17:51:01 +0000 (+0000) Subject: [CritFix] Fill path field in hyperscan notice command X-Git-Tag: 3.5~199 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ac4c56a26cc487b32bf1b3be3844e177c473b176;p=thirdparty%2Frspamd.git [CritFix] Fill path field in hyperscan notice command Reported by: @moisseev --- diff --git a/src/libserver/hyperscan_tools.cxx b/src/libserver/hyperscan_tools.cxx index 2499b21ec2..b6c16e5628 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,