diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-24 08:43:42 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-24 08:43:42 +0100 |
commit | 2f0c6e0f26c6d96442c24e54331c2939ca50127c (patch) | |
tree | d13f136708fc0513bb4e7cc224894ccdc635a950 /src/hs_helper.c | |
parent | e853ac873adbf4730f5c6593a410da310df35cac (diff) | |
download | rspamd-2f0c6e0f26c6d96442c24e54331c2939ca50127c.tar.gz rspamd-2f0c6e0f26c6d96442c24e54331c2939ca50127c.zip |
[Minor] Prevent data corruption when dealing with signals
Diffstat (limited to 'src/hs_helper.c')
-rw-r--r-- | src/hs_helper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hs_helper.c b/src/hs_helper.c index 8e63469b1..390c5e25f 100644 --- a/src/hs_helper.c +++ b/src/hs_helper.c @@ -220,6 +220,7 @@ rspamd_rs_compile (struct hs_helper_ctx *ctx, struct rspamd_worker *worker, ctx->loaded = TRUE; } + memset (&srv_cmd, 0, sizeof (srv_cmd)); srv_cmd.type = RSPAMD_SRV_HYPERSCAN_LOADED; rspamd_strlcpy (srv_cmd.cmd.hs_loaded.cache_dir, ctx->hs_dir, sizeof (srv_cmd.cmd.hs_loaded.cache_dir)); |