diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-17 14:04:58 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-17 14:09:51 +0000 |
commit | 213ea1bc48fcd7bdda92fa86cba5c5ba769bae2f (patch) | |
tree | b6180f4fea5c621dce2ea7568eed97475ae8f4ea /src/libserver/rspamd_control.c | |
parent | 049599ba091eefc089ebcccccaf53cd5e10ba875 (diff) | |
download | rspamd-213ea1bc48fcd7bdda92fa86cba5c5ba769bae2f.tar.gz rspamd-213ea1bc48fcd7bdda92fa86cba5c5ba769bae2f.zip |
[Fix] Fix reload and hyperscan ready event
MFH: true
Diffstat (limited to 'src/libserver/rspamd_control.c')
-rw-r--r-- | src/libserver/rspamd_control.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/rspamd_control.c b/src/libserver/rspamd_control.c index d680c35b1..592e3dbc1 100644 --- a/src/libserver/rspamd_control.c +++ b/src/libserver/rspamd_control.c @@ -810,7 +810,9 @@ rspamd_srv_handler (gint fd, short what, gpointer ud) * We assume that cache dir is shared at the same address for all * workers */ - wcmd.cmd.hs_loaded.cache_dir = cmd.cmd.hs_loaded.cache_dir; + rspamd_strlcpy (wcmd.cmd.hs_loaded.cache_dir, + cmd.cmd.hs_loaded.cache_dir, + sizeof (wcmd.cmd.hs_loaded.cache_dir)); wcmd.cmd.hs_loaded.forced = cmd.cmd.hs_loaded.forced; rspamd_control_broadcast_cmd (srv, &wcmd, rfd, rspamd_control_hs_io_handler, NULL); |