Skip to content

Commit

Permalink
send: return not found on unknown session
Browse files Browse the repository at this point in the history
Previously 'bad request' was returned.
  • Loading branch information
broglep-work authored and LukasWoodtli committed Feb 11, 2025
1 parent 535230c commit 97d317f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/reporting.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ uint8_t reporting_handleSend(lwm2m_context_t *contextP, void *fromSessionH, coap
break;
}
if (clientP == NULL)
return COAP_400_BAD_REQUEST;
return COAP_404_NOT_FOUND;

format = utils_convertMediaType(message->content_type);

Expand Down

0 comments on commit 97d317f

Please sign in to comment.