Skip to content
Commit 1d6d24b6 authored by Benjamin Lindqvist's avatar Benjamin Lindqvist Committed by Carles Cufí
Browse files

net: lwm2m: don't load credentials on plaintext context



Since lwm2m_load_tls_credentials(ctx) will assume that the ctx has a
valid security object assigned to it, it should not be called at all
when ctx.use_dtls == false.

This solves a major bug where LwM2M comms are DTLS encrypted but FOTA is
allowed to be plain-text.

Signed-off-by: default avatarBenjamin Lindqvist <benjamin@eub.se>
parent 07ae06f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment