diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-08-27 17:33:09 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-08-27 17:33:09 +0400 |
commit | e43699510542c7e4f720b6fc53e2efb76a7d57cd (patch) | |
tree | 27bce4b1c33628027ed33759eb2735d1ca8a8852 /src/fuzzy_storage.c | |
parent | 2d744f4852b71ae21cbc25c87d4cc86b6f72fe19 (diff) | |
download | rspamd-e43699510542c7e4f720b6fc53e2efb76a7d57cd.tar.gz rspamd-e43699510542c7e4f720b6fc53e2efb76a7d57cd.zip |
* Add ability to check hashes of selected mime types
* Add ability to set minimum size in bytes for mime types
* Add ability to set minimum dimensions for images
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r-- | src/fuzzy_storage.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index cff5d45d8..4b8b4ca9d 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -548,13 +548,15 @@ delete_hash (GQueue *hash, fuzzy_hash_t *s) struct rspamd_fuzzy_node *h; gboolean res = FALSE; #ifdef WITH_JUDY - PPvoid_t pvalue; + PPvoid_t pvalue; + gpointer data; if (use_judy) { pvalue = JudySLGet (jtree, s->hash_pipe, PJE0); if (pvalue) { + data = *pvalue; res = JudySLDel (&jtree, s->hash_pipe, PJE0); - g_free (*pvalue); + g_free (data); bloom_del (bf, s->hash_pipe); msg_info ("fuzzy hash was successfully deleted"); server_stat->fuzzy_hashes --; |