]> source.dussan.org Git - rspamd.git/commitdiff
Fill fuzzy command before sending.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 1 Dec 2013 18:19:38 +0000 (18:19 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 1 Dec 2013 18:19:38 +0000 (18:19 +0000)
src/plugins/fuzzy_check.c

index 71be7116e678caa26614922f39926b5460994145..cf1cf9c385b476be69950874dd4e4b2e4c1e6dac 100644 (file)
@@ -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));