diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-12-01 18:19:38 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-12-01 18:19:38 +0000 |
commit | d20c437329331f869237dbc115893ebeb8c7654b (patch) | |
tree | 44ba6b50fac4ea24652edf6cdf39142d9d0881bc | |
parent | 566f727b8c2386a614bb6909550c173357c39af6 (diff) | |
download | rspamd-d20c437329331f869237dbc115893ebeb8c7654b.tar.gz rspamd-d20c437329331f869237dbc115893ebeb8c7654b.zip |
Fill fuzzy command before sending.
-rw-r--r-- | src/plugins/fuzzy_check.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 71be7116e..cf1cf9c38 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -488,6 +488,7 @@ fuzzy_io_callback (gint fd, short what, void *arg) if (what == EV_WRITE) { /* Send command to storage */ + memset (&cmd, 0, sizeof (cmd)); cmd.blocksize = session->h->block_size; cmd.value = 0; memcpy (cmd.hash, session->h->hash_pipe, sizeof (cmd.hash)); |