diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-18 16:58:34 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-18 16:58:34 +0000 |
commit | 7e9d402740b321964975633feaaa664384cc04f3 (patch) | |
tree | 5d5254d02847513749f1449871b5cde657d211fc /src/fuzzy_storage.c | |
parent | 61d13075ac3f48f276120ec4e77a9b7e03268926 (diff) | |
download | rspamd-7e9d402740b321964975633feaaa664384cc04f3.tar.gz rspamd-7e9d402740b321964975633feaaa664384cc04f3.zip |
[Fix] Fix processing of skip-hashes in fuzzy storage
MFH: rspamd-1.6
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r-- | src/fuzzy_storage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index 4d5706eb9..2ca300025 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -857,8 +857,8 @@ rspamd_fuzzy_process_command (struct fuzzy_session *session) else { if (rspamd_fuzzy_check_client (session)) { /* Check whitelist */ - if (session->ctx->skip_hashes) { - rspamd_encode_hex_buf (cmd->digest, sizeof (cmd->cmd), + if (session->ctx->skip_hashes && cmd->cmd == FUZZY_WRITE) { + rspamd_encode_hex_buf (cmd->digest, sizeof (cmd->digest), hexbuf, sizeof (hexbuf) - 1); hexbuf[sizeof (hexbuf) - 1] = '\0'; |