]> 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:08:02 +0000 (23:08 +0000)
Found by: coverity scan

src/fuzzy_storage.c

index a4e4b8a261350374f8011644a19ffee19fd6be7b..8d02732fa8908303ed238d595ef0d2753931a570 100644 (file)
@@ -484,6 +484,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,