net: lwm2m: fix possible dereference in RD client
While looping through possible lwm2m_ctx matches, we're referencing
remote before checking that the context itself is valid.
Also, reduce indentation issues.
Signed-off-by:
Michael Scott <michael@opensourcefoundries.com>
Loading
Please sign in to comment