mirror of
https://github.com/espressif/openthread.git
synced 2026-07-31 16:17:47 +00:00
NcpBase: Fix insert handler for MAC_WHITELIST property (#1862)
Use `sizeof(otExtAddress)` directly when checking the length of value portion of spinel frame (instead of using the `sizeof` variable which is a pointer to an `otExtAddress`).
This commit is contained in:
committed by
Jonathan Hui
parent
1c518dd8a1
commit
5626ce7851
@@ -7036,7 +7036,7 @@ otError NcpBase::InsertPropertyHandler_MAC_WHITELIST(uint8_t header, spinel_prop
|
||||
int8_t rssi = RSSI_OVERRIDE_DISABLED;
|
||||
|
||||
|
||||
if (value_len > static_cast<spinel_ssize_t>(sizeof(ext_addr)))
|
||||
if (value_len > static_cast<spinel_ssize_t>(sizeof(otExtAddress)))
|
||||
{
|
||||
parsedLength = spinel_datatype_unpack(
|
||||
value_ptr,
|
||||
|
||||
Reference in New Issue
Block a user