]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fuzzy_storage: properly set reply on blocked
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 8 Dec 2018 14:46:53 +0000 (14:46 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 8 Dec 2018 14:46:53 +0000 (14:46 +0000)
src/fuzzy_storage.c

index 7fa821e9b6f8728e7a90158f2b0d09b6eb8905e6..2d53d969b257b53035c61843f8b6c9bb8810d8ab 100644 (file)
@@ -1116,6 +1116,8 @@ rspamd_fuzzy_process_command (struct fuzzy_session *session)
                else {
                        result.v1.value = 403;
                        result.v1.prob = 0.0;
+                       result.v1.flag = 0;
+                       rspamd_fuzzy_make_reply (cmd, &result, session, encrypted, is_shingle);
                }
        }
        else if (cmd->cmd == FUZZY_STAT) {