Skip to content

Commit f2585be

Browse files
vivien-applekiel-apple
authored andcommitted
[DNS-SD] Common Resolution Data such as the idle interval, active interval, etc... are ignored by the dnssd platform discovery code when a commissionable node is discovered (project-chip#35650)
Co-authored-by: Kiel Oleson <kielo@apple.com>
1 parent 975b15e commit f2585be

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/lib/dnssd/Discovery_ImplPlatform.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,6 @@ void DnssdService::ToDiscoveredCommissionNodeData(const Span<Inet::IPAddress> &
409409
ByteSpan key(reinterpret_cast<const uint8_t *>(mTextEntries[i].mKey), strlen(mTextEntries[i].mKey));
410410
ByteSpan val(mTextEntries[i].mData, mTextEntries[i].mDataSize);
411411
FillNodeDataFromTxt(key, val, discoveredData);
412-
FillNodeDataFromTxt(key, val, discoveredData);
413412
}
414413
}
415414

src/lib/dnssd/TxtFields.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ void FillNodeDataFromTxt(const ByteSpan & key, const ByteSpan & val, CommissionN
262262
nodeData.supportsCommissionerGeneratedPasscode = Internal::GetCommissionerPasscode(val);
263263
break;
264264
default:
265+
FillNodeDataFromTxt(key, val, static_cast<CommonResolutionData &>(nodeData));
265266
break;
266267
}
267268
}

0 commit comments

Comments
 (0)