aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-23 12:27:11 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-23 12:27:11 +0100
commit4c1112004d8253d3b2b91225d4cb45592a4754a8 (patch)
tree3feb8c1cbd0840eed29f14827b1a7bd06df65479
parent40d5f05721ac5d96a99659407eac91eab2420f86 (diff)
downloadrspamd-4c1112004d8253d3b2b91225d4cb45592a4754a8.tar.gz
rspamd-4c1112004d8253d3b2b91225d4cb45592a4754a8.zip
[Fix] Disallow updates by default
-rw-r--r--src/fuzzy_storage.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index db1557e47..b7d9ea781 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -182,8 +182,12 @@ rspamd_fuzzy_check_client (struct fuzzy_session *session)
session->addr) == RADIX_NO_VALUE) {
return FALSE;
}
+ else {
+ return TRUE;
+ }
}
- return TRUE;
+
+ return FALSE;
}
static void
@@ -831,12 +835,14 @@ rspamd_fuzzy_mirror_process_update (struct fuzzy_master_update_session *session,
err:
if (updates) {
+ /* We still need to clear queue */
for (cur = updates; cur != NULL; cur = g_list_next (cur)) {
if (cur->data) {
g_slice_free1 (sizeof (cmd), cur->data);
}
}
+ /* This also update our version id */
g_list_free (updates);
}
}