]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix LRU elements removal
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 14 May 2017 10:02:30 +0000 (11:02 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 14 May 2017 10:02:30 +0000 (11:02 +0100)
src/libutil/hash.c

index c2dd39d0767b4ec6d32eafbff64d3a1447a715c7..5be46724e9c1cb746bb633c02a601bccb87a2e05 100644 (file)
@@ -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 *