forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: sockets: Update msg_controllen in recvmsg properly
According to recvmsg man page, msg_controllen should be set to the sum of the length of all control messages in the buffer. This is missing from the current recvmsg implementation. This commit aims to fix this by updating msg_controllen each time control data are added to the buffer. This commit also fixes cases where the msg_controllen is not cleared correctly. Fixes zephyrproject-rtos#77303 Signed-off-by: Axel Le Bourhis <axel.lebourhis@nxp.com>
- Loading branch information
Showing
1 changed file
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters