lib/fetch/file.c: CID 62701 (NULL pointer dereference)
This commit is contained in:
@ -210,6 +210,11 @@ fetchStatFile(struct url *u, struct url_stat *us, const char *flags)
|
|||||||
|
|
||||||
(void)flags;
|
(void)flags;
|
||||||
|
|
||||||
|
if (us == NULL) {
|
||||||
|
fetch_syserr();
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
if ((path = fetchUnquotePath(u)) == NULL) {
|
if ((path = fetchUnquotePath(u)) == NULL) {
|
||||||
fetch_syserr();
|
fetch_syserr();
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user