aboutsummaryrefslogtreecommitdiffstats
path: root/src/log_helper.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-24 08:43:42 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-24 08:43:42 +0100
commit2f0c6e0f26c6d96442c24e54331c2939ca50127c (patch)
treed13f136708fc0513bb4e7cc224894ccdc635a950 /src/log_helper.c
parente853ac873adbf4730f5c6593a410da310df35cac (diff)
downloadrspamd-2f0c6e0f26c6d96442c24e54331c2939ca50127c.tar.gz
rspamd-2f0c6e0f26c6d96442c24e54331c2939ca50127c.zip
[Minor] Prevent data corruption when dealing with signals
Diffstat (limited to 'src/log_helper.c')
-rw-r--r--src/log_helper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/log_helper.c b/src/log_helper.c
index 9800ab9d3..0f98a5579 100644
--- a/src/log_helper.c
+++ b/src/log_helper.c
@@ -212,6 +212,7 @@ start_log_helper (struct rspamd_worker *worker)
exit (EXIT_SUCCESS);
}
+ memset (&srv_cmd, 0, sizeof (srv_cmd));
srv_cmd.type = RSPAMD_SRV_LOG_PIPE;
srv_cmd.cmd.log_pipe.type = RSPAMD_LOG_PIPE_SYMBOLS;