Skip to content

Commit 2f36eba

Browse files
[zephyr] Fixed GetNetworkInterfaces method (#37707)
GetNetworkInterfaces method does not set next pointer for the specific interfaces. Because of that, it is not possible to iterate through the elements returned by this method.
1 parent 1740546 commit 2f36eba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/platform/Zephyr/DiagnosticDataProviderImpl.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetNetworkInterfaces(NetworkInterface **
369369
}
370370

371371
ifp->IPv6Addresses = chip::app::DataModel::List<chip::ByteSpan>(ifp->Ipv6AddressSpans, ipv6AddressesCount);
372+
ifp->Next = head;
372373
head = ifp;
373374
}
374375

0 commit comments

Comments
 (0)