From: Vsevolod Stakhov Date: Mon, 11 Dec 2023 14:38:20 +0000 (+0000) Subject: [Minor] Link runtime to the proper statfile context X-Git-Tag: 3.8.0~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b39c0f971fa101cf56250792b4892a0c665ba2b;p=thirdparty%2Frspamd.git [Minor] Link runtime to the proper statfile context --- diff --git a/src/libstat/backends/redis_backend.cxx b/src/libstat/backends/redis_backend.cxx index 30dd131078..5e222c6cb0 100644 --- a/src/libstat/backends/redis_backend.cxx +++ b/src/libstat/backends/redis_backend.cxx @@ -603,9 +603,11 @@ rspamd_redis_runtime(struct rspamd_task *task, object_expanded, stcf->is_spam); if (maybe_existing) { - /* Update stcf to correspond to what we have been asked */ - maybe_existing.value()->stcf = stcf; - return maybe_existing.value(); + auto *rt = maybe_existing.value(); + /* Update stcf and ctx to correspond to what we have been asked */ + rt->stcf = stcf; + rt->ctx = ctx; + return rt; } }