From: Vsevolod Stakhov Date: Tue, 24 Sep 2024 14:13:39 +0000 (+0100) Subject: [Fix] Iterate over dynamic keys in fuzzy storage X-Git-Tag: 3.10.0~7^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F5156%2Fhead;p=rspamd.git [Fix] Iterate over dynamic keys in fuzzy storage --- diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index 3064d45a0..f21992a94 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -2475,6 +2475,12 @@ rspamd_fuzzy_stat_to_ucl(struct rspamd_fuzzy_storage_ctx *ctx, gboolean ip_stat) rspamd_fuzzy_key_stat_iter(pk_iter, fuzzy_key, keys_obj, ip_stat); }); + if (ctx->dynamic_keys) { + kh_foreach(ctx->dynamic_keys, pk_iter, fuzzy_key, { + rspamd_fuzzy_key_stat_iter(pk_iter, fuzzy_key, keys_obj, ip_stat); + }); + } + ucl_object_insert_key(obj, keys_obj, "keys", 0, false); /* Now generic stats */