summaryrefslogtreecommitdiffstats
path: root/src/fuzzy_storage.c
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:05:08 +0000
commitccb5d1f7b205821fae2924dd1b2bda91add277d1 (patch)
treeecf2aa6fb09748b6882bacba5be786114b049bb3 /src/fuzzy_storage.c
parent4857227f111446954da3b202d7318feb6fba705c (diff)
downloadrspamd-ccb5d1f7b205821fae2924dd1b2bda91add277d1.tar.gz
rspamd-ccb5d1f7b205821fae2924dd1b2bda91add277d1.zip
Properly set `flag` in fuzzy replies
Found by: coverity scan
Diffstat (limited to 'src/fuzzy_storage.c')
-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 71dfda2ef..c4814c6d4 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -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,