Skip to content

Commit 97d317f

Browse files
broglep-workLukasWoodtli
authored andcommitted
send: return not found on unknown session
Previously 'bad request' was returned.
1 parent 535230c commit 97d317f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/reporting.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ uint8_t reporting_handleSend(lwm2m_context_t *contextP, void *fromSessionH, coap
3636
break;
3737
}
3838
if (clientP == NULL)
39-
return COAP_400_BAD_REQUEST;
39+
return COAP_404_NOT_FOUND;
4040

4141
format = utils_convertMediaType(message->content_type);
4242

0 commit comments

Comments
 (0)