]> source.dussan.org Git - rspamd.git/commitdiff
Properly set `flag` in fuzzy replies
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 10 Feb 2016 23:05:08 +0000 (23:05 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 10 Feb 2016 23:05:08 +0000 (23:05 +0000)
Found by: coverity scan

src/fuzzy_storage.c

index 71dfda2efc39159a6bbc0acacefde5e5da4b883b..c4814c6d40cbadaf0ecc2c04b6e1f0e9aefc9752 100644 (file)
@@ -485,6 +485,7 @@ rspamd_fuzzy_process_command (struct fuzzy_session *session)
 
 reply:
        result.tag = cmd->tag;
+       result.flag = cmd->flag;
        memcpy (&session->reply.rep, &result, sizeof (result));
 
        rspamd_fuzzy_update_stats (session->ctx,