summaryrefslogtreecommitdiffstats
path: root/src/fuzzy_storage.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/fuzzy_storage.c
parente853ac873adbf4730f5c6593a410da310df35cac (diff)
downloadrspamd-2f0c6e0f26c6d96442c24e54331c2939ca50127c.tar.gz
rspamd-2f0c6e0f26c6d96442c24e54331c2939ca50127c.zip
[Minor] Prevent data corruption when dealing with signals
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r--src/fuzzy_storage.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index 47b76fb9b..ad77c2848 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -2869,7 +2869,6 @@ start_fuzzy (struct rspamd_worker *worker)
/* Get peer pipe */
memset (&srv_cmd, 0, sizeof (srv_cmd));
srv_cmd.type = RSPAMD_SRV_SOCKETPAIR;
- srv_cmd.id = ottery_rand_uint64 ();
srv_cmd.cmd.spair.af = SOCK_DGRAM;
srv_cmd.cmd.spair.pair_num = worker->index;
memset (srv_cmd.cmd.spair.pair_id, 0, sizeof (srv_cmd.cmd.spair.pair_id));