diff --git a/src/ncp/ncp_base.cpp b/src/ncp/ncp_base.cpp index c2be77470..66cb1919b 100644 --- a/src/ncp/ncp_base.cpp +++ b/src/ncp/ncp_base.cpp @@ -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(sizeof(ext_addr))) + if (value_len > static_cast(sizeof(otExtAddress))) { parsedLength = spinel_datatype_unpack( value_ptr,