]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Uh-oh...
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 14 Dec 2023 16:53:19 +0000 (16:53 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 14 Dec 2023 16:53:19 +0000 (16:53 +0000)
src/libstat/backends/redis_backend.cxx

index 026bb45033273149c608278a2cc3ce6c09dad8c5..c40d50b1c31291895798d62874058a981e02e118 100644 (file)
@@ -670,7 +670,7 @@ rspamd_redis_serialize_tokens(struct rspamd_task *task, const gchar *prefix, GPt
        {
                auto numbuf_len = sizeof(max_int64_str) + prefix_len + 1;
                auto *numbuf = (char *) g_alloca(numbuf_len);
-               auto r = rspamd_snprintf(numbuf, numbuf_len, "%s_%uL", tok->data);
+               auto r = rspamd_snprintf(numbuf, numbuf_len, "%s_%uL", prefix, tok->data);
                *p++ = (gchar) ((r & 0xff) | 0xa0);
 
                memcpy(p, &numbuf, r);