From dcf0182f5a2288a9a90bcb33fec3d4cb9591f49c Mon Sep 17 00:00:00 2001 From: Andrea Guzzo Date: Thu, 11 Dec 2014 12:50:20 +0100 Subject: [PATCH] extra safety check --- src/hashtable.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hashtable.c b/src/hashtable.c index b68ec58..01e0f07 100644 --- a/src/hashtable.c +++ b/src/hashtable.c @@ -368,6 +368,9 @@ ht_set_internal(hashtable_t *table, if (!list) list = ht_set_list(table, hash); + if (!list) + return -1; + ht_item_t *item = NULL; TAILQ_FOREACH(item, &list->head, next) { if (/*ht_item->hash == arg->item.hash && */