diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-23 16:07:00 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-23 16:07:00 +0100 |
commit | 0e09a5486513847905fb059185a7c5a32f50ead9 (patch) | |
tree | cc812dadbb38b3b264a106807a166f9c3bdcacd4 /src/fuzzy_storage.c | |
parent | 8dc67975d826c02e2757ff8e3e758b1839edb044 (diff) | |
download | rspamd-0e09a5486513847905fb059185a7c5a32f50ead9.tar.gz rspamd-0e09a5486513847905fb059185a7c5a32f50ead9.zip |
[Revert] Revert flags changes in fuzzy check
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r-- | src/fuzzy_storage.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index 31cde97a1..ece171135 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -686,24 +686,6 @@ rspamd_fuzzy_process_command (struct fuzzy_session *session) reply: result.tag = cmd->tag; - if (session->epoch < RSPAMD_FUZZY_EPOCH11) { - /* We need to convert flags to legacy format */ - guint32 flag = 0; - - /* We select the least significant flag if multiple flags are set */ - for (flag = 0; flag < 32; flag ++) { - if (result.flag & (1U << flag)) { - break; - } - } - - if (flag == (1U << 31)) { - flag = 0; - } - - result.flag = flag + 1; - } - memcpy (&session->reply.rep, &result, sizeof (result)); rspamd_fuzzy_update_stats (session->ctx, |