aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/hash.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/hash.c b/lib/hash.c
index 3704eea41..4d85188fb 100644
--- a/lib/hash.c
+++ b/lib/hash.c
@@ -264,6 +264,9 @@ Curl_hash_clean_with_criterium(struct curl_hash *h, void *user,
struct curl_llist *list;
int i;
+ if(!h)
+ return;
+
for(i = 0; i < h->slots; ++i) {
list = h->table[i];
le = list->head; /* get first list entry */