]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Oops, fix encrypted reply
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 24 Jun 2020 14:54:38 +0000 (15:54 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 24 Jun 2020 14:54:38 +0000 (15:54 +0100)
src/fuzzy_storage.c

index 6242e47c77f2520c45c7e229898b85ec205740d8..0d7721ffbeed1062440c7a93eedcb34b0bc55203 100644 (file)
@@ -759,12 +759,17 @@ rspamd_fuzzy_check_callback (struct rspamd_fuzzy_reply *result, void *ud)
        struct rspamd_shingle sgl_cpy;
 
        switch (session->cmd_type) {
-       case CMD_NORMAL:
        case CMD_ENCRYPTED_NORMAL:
+               encrypted = TRUE;
+               /* Fallthrough */
+       case CMD_NORMAL:
                cmd = &session->cmd.basic;
                break;
-       case CMD_SHINGLE:
+
        case CMD_ENCRYPTED_SHINGLE:
+               encrypted = TRUE;
+               /* Fallthrough */
+       case CMD_SHINGLE:
                cmd = &session->cmd.basic;
                memcpy (&sgl_cpy, &session->cmd.sgl, sizeof (sgl_cpy));
                shingle = &sgl_cpy;