projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99a12ba
)
hash.c: fix OOM triggered segfault
author
Yang Tse
<yangsita@gmail.com>
Sun, 25 Dec 2011 10:35:45 +0000
(11:35 +0100)
committer
Yang Tse
<yangsita@gmail.com>
Sun, 25 Dec 2011 10:35:45 +0000
(11:35 +0100)
lib/hash.c
patch
|
blob
|
history
diff --git
a/lib/hash.c
b/lib/hash.c
index
3704eea
..
4d85188
100644
(file)
--- 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 */