Skip to content
Commit ae03e45b authored by Axel Le Bourhis's avatar Axel Le Bourhis Committed by Anas Nashif
Browse files

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 cleared
incorrectly.

Fixes #77303

Signed-off-by: default avatarAxel Le Bourhis <axel.lebourhis@nxp.com>
(cherry picked from commit 5d643f4b)
parent 574a6dff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment