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/log_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/log_helper.c')
-rw-r--r-- | src/log_helper.c | 1 |
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; |