net: lwm2m: LwM2M engine send operation update.

Added mutex lock for message build operation.

Signed-off-by: Juha Heiskanen <juha.heiskanen@nordicsemi.no>
This commit is contained in:
Juha Heiskanen 2022-10-03 15:52:05 +03:00 committed by Fabio Baltieri
commit 17b60d0fce

View file

@ -2930,7 +2930,9 @@ int lwm2m_engine_send(struct lwm2m_ctx *ctx, char const *path_list[], uint8_t pa
}
/* Write requested path data */
lwm2m_registry_lock();
ret = do_send_op(msg, content_format, &lwm2m_path_list);
lwm2m_registry_unlock();
if (ret < 0) {
LOG_ERR("Send (err:%d)", ret);
goto cleanup;