mirror of
https://github.com/espressif/openthread.git
synced 2026-09-15 05:30:09 +00:00
[network-data] add nullptr check in Iterate() (#5359)
This commit is contained in:
@@ -348,6 +348,11 @@ otError NetworkData::Iterate(Iterator &aIterator, uint16_t aRloc16, Config &aCon
|
||||
{
|
||||
const ServiceTlv *service = static_cast<const ServiceTlv *>(cur);
|
||||
|
||||
if (aConfig.mService == nullptr)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (subCur->GetType() == NetworkDataTlv::kTypeServer)
|
||||
{
|
||||
const ServerTlv *server = static_cast<const ServerTlv *>(subCur);
|
||||
|
||||
Reference in New Issue
Block a user