]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[CritFix] Properly check dynamic keys in fuzzy storage
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 5 Dec 2024 15:24:54 +0000 (15:24 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 5 Dec 2024 15:24:54 +0000 (15:24 +0000)
src/fuzzy_storage.c

index 0d7a1c2a860f7c163d597a5f23c6c0e246e0ab93..bc69be98c5f796a2347debd39ef10e1dcab80dd6 100644 (file)
@@ -1782,7 +1782,7 @@ rspamd_fuzzy_decrypt_command(struct fuzzy_session *s, unsigned char *buf, gsize
                if (s->ctx->dynamic_keys) {
                        k = kh_get(rspamd_fuzzy_keys_hash, s->ctx->dynamic_keys, hdr.key_id);
 
-                       if (k != kh_end(s->ctx->keys)) {
+                       if (k != kh_end(s->ctx->dynamic_keys)) {
                                key = kh_val(s->ctx->dynamic_keys, k);
                        }
                }