From: Vsevolod Stakhov Date: Sun, 1 Dec 2013 18:19:38 +0000 (+0000) Subject: Fill fuzzy command before sending. X-Git-Tag: 0.6.1~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d20c437329331f869237dbc115893ebeb8c7654b;p=rspamd.git Fill fuzzy command before sending. --- 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));