Skip to content
Commit 493b9402 authored by Benjamin Bigler's avatar Benjamin Bigler Committed by Carles Cufí
Browse files

net: lwm2m: Fix address length at connect



If NET_IPV4 and NET_SOCKETS_PACKET is enabled, NET_SOCKADDR_MAX_SIZE will
be bigger than the ipv4 address length.
This is a problem when DTLS is used as the address comparison will fail
because of the different length of the received and the stored address.
This is also a problem if NET_IPV6 and NET_IPV4 is enabled and the remote
address is a ipv4 address

Signed-off-by: default avatarBenjamin Bigler <benjamin.bigler@securiton.ch>
parent 7a042377
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment