net: lwm2m: Fix bootstrap finish response code
LwM2M engine did not set response code for the Bootstrap-finish message, hence it replied with the code copied from the request which is not correct. Fix this by setting correct code for the Bootstrap-finish reply. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
parent
cfb6257327
commit
b932edc772
1 changed files with 2 additions and 0 deletions
|
@ -3354,6 +3354,8 @@ static int handle_request(struct coap_packet *request,
|
|||
strncmp(options[0].value, "bs", options[0].len) == 0) {
|
||||
engine_bootstrap_finish();
|
||||
|
||||
msg->code = COAP_RESPONSE_CODE_CHANGED;
|
||||
|
||||
r = lwm2m_init_message(msg);
|
||||
if (r < 0) {
|
||||
goto error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue