aboutsummaryrefslogtreecommitdiffstats
path: root/src/hs_helper.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-17 14:04:58 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-17 14:09:51 +0000
commit213ea1bc48fcd7bdda92fa86cba5c5ba769bae2f (patch)
treeb6180f4fea5c621dce2ea7568eed97475ae8f4ea /src/hs_helper.c
parent049599ba091eefc089ebcccccaf53cd5e10ba875 (diff)
downloadrspamd-213ea1bc48fcd7bdda92fa86cba5c5ba769bae2f.tar.gz
rspamd-213ea1bc48fcd7bdda92fa86cba5c5ba769bae2f.zip
[Fix] Fix reload and hyperscan ready event
MFH: true
Diffstat (limited to 'src/hs_helper.c')
-rw-r--r--src/hs_helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hs_helper.c b/src/hs_helper.c
index e3aee6cbc..088aba8ae 100644
--- a/src/hs_helper.c
+++ b/src/hs_helper.c
@@ -210,7 +210,8 @@ rspamd_rs_compile (struct hs_helper_ctx *ctx, struct rspamd_worker *worker,
}
srv_cmd.type = RSPAMD_SRV_HYPERSCAN_LOADED;
- srv_cmd.cmd.hs_loaded.cache_dir = ctx->hs_dir;
+ rspamd_strlcpy (srv_cmd.cmd.hs_loaded.cache_dir, ctx->hs_dir,
+ sizeof (srv_cmd.cmd.hs_loaded.cache_dir));
srv_cmd.cmd.hs_loaded.forced = forced;
rspamd_srv_send_command (worker, ctx->ev_base, &srv_cmd, -1, NULL, NULL);