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