We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a31a4ea commit 7539363Copy full SHA for 7539363
src/lib/dnssd/Resolver_ImplMinimalMdns.cpp
@@ -178,6 +178,10 @@ void PacketDataReporter::OnOperationalIPAddress(const chip::Inet::IPAddress & ad
178
// This code assumes that all entries in the mDNS packet relate to the
179
// same entity. This may not be correct if multiple servers are reported
180
// (if multi-admin decides to use unique ports for every ecosystem).
181
+ if (mNodeData.mNumIPs >= ResolvedNodeData::kMaxIPAddresses)
182
+ {
183
+ return;
184
+ }
185
mNodeData.mAddress[mNodeData.mNumIPs++] = addr;
186
mNodeData.mInterfaceId = mInterfaceId;
187
mHasIP = true;
0 commit comments