Skip to content
Commit dea896f6 authored by Jukka Rissanen's avatar Jukka Rissanen Committed by Maureen Helm
Browse files

net: tcp: Set address len properly when accepting a socket



The address length of the accepted socket must reflect the
size of the address struct, so it should either be
sizeof(struct sockaddr_in) for IPv4 or sizeof(struct sockaddr_in6) for
IPv6 socket.

Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@nordicsemi.no>
parent 83aaeadd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment