lib/fetch/common.c: CID 62709 (NULL pointer dereference)
This commit is contained in:
parent
6e7c160195
commit
a6cdd9a698
@ -520,6 +520,8 @@ fetch_read(conn_t *conn, char *buf, size_t len)
|
|||||||
ssize_t rlen;
|
ssize_t rlen;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
|
if (!buf)
|
||||||
|
return -1;
|
||||||
if (len == 0)
|
if (len == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user