Browse Source

[Fix] Disallow updates by default

tags/1.3.0
Vsevolod Stakhov 8 years ago
parent
commit
4c1112004d
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      src/fuzzy_storage.c

+ 7
- 1
src/fuzzy_storage.c View File

@@ -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);
}
}

Loading…
Cancel
Save