Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: lwm2m: lwm2m_message_handling: fix validation of time.
Currently the if statement checks if the write_buf_len is the sizeof(time_t), when CONFIG_LWM2M_ENGINE_VALIDATION_BUFFER_SIZE is > 0 it will always assume the the resource buf len is not supported unless CONFIG_LWM2M_ENGINE_VALIDATION_BUFFER_SIZE is equal to sizeof(time_t). To fix this the check should be CONFIG_LWM2M_ENGINE_VALIDATION_BUFFER_SIZE >= sizeof(time_t). Signed-off-by: Brandon Allen <brandon.allen@exacttechnology.com>
- Loading branch information