lib/fetch/http.c: CID 62698 (NULL pointer dereference)
This commit is contained in:
parent
dc63aed221
commit
d434b44cfc
@ -1473,6 +1473,8 @@ fetchListHTTP(struct url_list *ue, struct url *url, const char *pattern, const c
|
||||
}
|
||||
|
||||
cache = malloc(sizeof(*cache));
|
||||
if (cache == NULL)
|
||||
return -1;
|
||||
fetchInitURLList(&cache->ue);
|
||||
cache->location = fetchCopyURL(url);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user