diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-14 11:02:30 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-14 11:02:30 +0100 |
commit | 869fdf9a5936911168c52d451986404cfb42bc8f (patch) | |
tree | fdac0be2f41ca4f1237413af1df6d907acbef656 /src/libutil/hash.c | |
parent | cba520a97286b3b4febdb654f028bc923c45726b (diff) | |
download | rspamd-869fdf9a5936911168c52d451986404cfb42bc8f.tar.gz rspamd-869fdf9a5936911168c52d451986404cfb42bc8f.zip |
[Fix] Fix LRU elements removal
Diffstat (limited to 'src/libutil/hash.c')
-rw-r--r-- | src/libutil/hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/hash.c b/src/libutil/hash.c index c2dd39d07..5be46724e 100644 --- a/src/libutil/hash.c +++ b/src/libutil/hash.c @@ -215,7 +215,7 @@ rspamd_lru_hash_remove_node (rspamd_lru_hash_t *hash, rspamd_lru_element_t *elt) rspamd_lru_hash_remove_evicted (hash, elt); } - g_hash_table_remove (hash->tbl, elt); + g_hash_table_remove (hash->tbl, elt->key); } static rspamd_lru_element_t * |