commit d784fa6: [Minor] Fix unencrypted fuzzy case

Vsevolod Stakhov vsevolod at rspamd.com
Wed Jan 11 15:35:03 UTC 2023


Author: Vsevolod Stakhov
Date: 2023-01-11 15:28:32 +0000
URL: https://github.com/rspamd/rspamd/commit/d784fa6f3deb8afbbab7c52d6ef891c45cd2c16b (HEAD -> master)

[Minor] Fix unencrypted fuzzy case

---
 src/fuzzy_storage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index 2ca9548e4..5665d4eda 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -745,7 +745,7 @@ rspamd_fuzzy_make_reply (struct rspamd_fuzzy_cmd *cmd,
 				result->v1.prob > 0.5,
 				flags & RSPAMD_FUZZY_REPLY_SHINGLE,
 				flags & RSPAMD_FUZZY_REPLY_DELAY,
-				session->key->stat,
+				session->key ? session->key->stat : NULL,
 				session->ip_stat,
 				cmd->cmd,
 				result->v1.value);


More information about the Commits mailing list