* miscfuncs.cc (check_iovec): Allow 0 as valid iovcnt value.
This commit is contained in:
@@ -196,7 +196,7 @@ dummytest (volatile char *p)
|
||||
ssize_t
|
||||
check_iovec (const struct iovec *iov, int iovcnt, bool forwrite)
|
||||
{
|
||||
if (iovcnt <= 0 || iovcnt > IOV_MAX)
|
||||
if (iovcnt < 0 || iovcnt > IOV_MAX)
|
||||
{
|
||||
set_errno (EINVAL);
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user