mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
net: Split msg_iovlen check in recvmsg into each protocol
To prepare for supporting multiple iov in each protocol. Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
This commit is contained in:
@@ -222,6 +222,11 @@ ssize_t usrsock_recvmsg(FAR struct socket *psock, FAR struct msghdr *msg,
|
||||
socklen_t outaddrlen = 0;
|
||||
ssize_t ret;
|
||||
|
||||
if (msg->msg_iovlen != 1)
|
||||
{
|
||||
return -ENOTSUP;
|
||||
}
|
||||
|
||||
if (fromlen)
|
||||
{
|
||||
if (*fromlen > 0 && from == NULL)
|
||||
|
||||
Reference in New Issue
Block a user