]> source.dussan.org Git - rspamd.git/commitdiff
[CritFix] Fill path field in hyperscan notice command
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 21 Nov 2022 17:51:01 +0000 (17:51 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 21 Nov 2022 17:51:01 +0000 (17:51 +0000)
Reported by: @moisseev

src/libserver/hyperscan_tools.cxx

index 2499b21ec2da81dab14b6f3f245c389e709983d5..b6c16e5628be22b434153e526f5676ad35fee804 100644 (file)
@@ -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,