Skip to content

Commit

Permalink
Fix for issue #440: Crash with client in DTLS when "quit" is usedInco…
Browse files Browse the repository at this point in the history
…rrect CoAP result on security object action made by the DM server

Signed-off-by: Frederic DUR <fdur@sierrawireless.com>
  • Loading branch information
fdur authored and Leif Sandstrom committed Feb 4, 2021
1 parent f8f65fa commit 6c50317
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/management.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
* Bosch Software Innovations GmbH - Please refer to git log
* Pascal Rieux - Please refer to git log
* Tuve Nordius, Husqvarna Group - Please refer to git log
*
* Frederic Dur - Please refer to git log
*
*******************************************************************************/
/*
Copyright (c) 2013, 2014 Intel Corporation
Expand Down Expand Up @@ -183,7 +184,7 @@ uint8_t dm_handleRequest(lwm2m_context_t * contextP,

if (uriP->objectId == LWM2M_SECURITY_OBJECT_ID)
{
return COAP_404_NOT_FOUND;
return COAP_401_UNAUTHORIZED;
}

if (serverP->status != STATE_REGISTERED
Expand Down

0 comments on commit 6c50317

Please sign in to comment.