Skip to content
Commit ee451e5c authored by Robert Lubos's avatar Robert Lubos Committed by Alberto Escolar
Browse files

net: sockets: tls: Fix iov_len comparison in sendmsg()



vec->iov_len is of type size_t, so the comparison was always true.
Additionally, doing the memcpy() when iov_len was 0 did not really make
sense, so do it only when the actual length is larger than 0.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 9ada52f0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment