mirror of
https://github.com/curl/curl.git
synced 2025-02-17 14:59:45 +08:00
hash.c: fix OOM triggered segfault
This commit is contained in:
parent
99a12baa34
commit
996f2454ba
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user