From 1e08514471896e3b3069cdc25f457036d257cc68 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 5 Feb 2015 18:20:22 +0000 Subject: Fix potential issues as found by coverity. --- src/libutil/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libutil/hash.c') diff --git a/src/libutil/hash.c b/src/libutil/hash.c index 05558078d..7610a4a9a 100644 --- a/src/libutil/hash.c +++ b/src/libutil/hash.c @@ -62,7 +62,7 @@ rspamd_lru_destroy_node (gpointer value) if (elt->hash && elt->hash->value_destroy) { elt->hash->value_destroy (elt->data); } - if (elt->link) { + if (elt->hash && elt->link) { g_queue_delete_link (elt->hash->exp, elt->link); } -- cgit v1.2.3