From: Vsevolod Stakhov Date: Thu, 5 Dec 2024 15:24:54 +0000 (+0000) Subject: [CritFix] Properly check dynamic keys in fuzzy storage X-Git-Tag: 3.11.0~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19d20d7afe3e47a9df6f2fc89a551bce30ac6f0c;p=thirdparty%2Frspamd.git [CritFix] Properly check dynamic keys in fuzzy storage --- diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index 0d7a1c2a86..bc69be98c5 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -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); } }