aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-20 11:31:16 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-20 11:31:16 +0100
commit235488eac67f055eee9246191ab70eb80fd81a1e (patch)
treeb033bce938bdae30bd1e01844a3df88c85415cf2 /src
parent070192c87bd1618812ab4577256a2501e6bf88a5 (diff)
downloadrspamd-235488eac67f055eee9246191ab70eb80fd81a1e.tar.gz
rspamd-235488eac67f055eee9246191ab70eb80fd81a1e.zip
[Project] Add preliminary support of CDB bayes dump
Diffstat (limited to 'src')
-rw-r--r--src/libstat/backends/cdb_backend.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstat/backends/cdb_backend.cxx b/src/libstat/backends/cdb_backend.cxx
index 7715e9b6b..eb86c6964 100644
--- a/src/libstat/backends/cdb_backend.cxx
+++ b/src/libstat/backends/cdb_backend.cxx
@@ -198,7 +198,7 @@ ro_backend::load_cdb() -> tl::expected<bool, std::string>
/* Now get number of learns */
std::int64_t cdb_key;
- static const char learn_spam_key[8] = "lrnspam", learn_ham_key[8] = "lrnham";
+ static const char learn_spam_key[9] = "_lrnspam", learn_ham_key[9] = "_lrnham_";
auto check_key = [&](const char *key, std::uint64_t &target) -> tl::expected<bool, std::string> {
memcpy((void *)&cdb_key, key, sizeof(cdb_key));