aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-10 23:05:08 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-10 23:08:02 +0000
commit550ee7a4765106bb1aa315273218e3b8c5b99acc (patch)
treeb668428a2d9a1c9c8464a85aa3ab85b81a644d70
parentc762dcf8f851cef3b221198506328e9b2a3dfea4 (diff)
downloadrspamd-550ee7a4765106bb1aa315273218e3b8c5b99acc.tar.gz
rspamd-550ee7a4765106bb1aa315273218e3b8c5b99acc.zip
Properly set `flag` in fuzzy replies
Found by: coverity scan
-rw-r--r--src/fuzzy_storage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index a4e4b8a26..8d02732fa 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -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,