lib/fetch/common.c: CID 62709 (NULL pointer dereference)

This commit is contained in:
Juan RP 2014-10-07 11:07:24 +02:00
parent 6e7c160195
commit a6cdd9a698

View File

@ -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;