mirror of
https://github.com/curl/curl.git
synced 2026-08-24 20:03:52 +03:00
hash.c: fix OOM triggered segfault
This commit is contained in:
parent
99a12baa34
commit
996f2454ba
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue