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:
Abtin Keshavarzian
2017-06-01 21:54:01 -07:00
committed by Jonathan Hui
parent 1c518dd8a1
commit 5626ce7851
+1 -1
View File
@@ -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,