Skip to content
Snippets Groups Projects
Commit 6c5f254a authored by Gregory Nutt's avatar Gregory Nutt
Browse files

psock_send() no longer sets errno, so send() must now set it.

parent ad369a0b
No related branches found
No related tags found
No related merge requests found
......@@ -224,6 +224,12 @@ ssize_t send(int sockfd, FAR const void *buf, size_t len, int flags)
/* And let psock_send do all of the work */
ret = psock_send(psock, buf, len, flags);
if (ret < 0)
{
set_errno((int)-ret);
ret = ERROR;
}
leave_cancellation_point();
return ret;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment