Skip to content

Commit

Permalink
Updated as per suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
su-shanka committed May 31, 2024
1 parent efb2652 commit e13c487
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/Darwin/DnssdContexts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,8 @@ bool ResolveContext::TryReportingResultsForInterfaceIndex(uint32_t interfaceInde
auto delegate = static_cast<DiscoverNodeDelegate *>(context);
DiscoveredNodeData nodeData;

// mType(service name) exactly matches with operational service name
if (strncmp(service[i].mType, kOperationalServiceName) == 0)
// check whether mType(service name) exactly matches with operational service name
if (strcmp(service.mType, kOperationalServiceName) == 0)
{
service.ToDiscoveredOperationalNodeBrowseData(nodeData);
}
Expand Down

0 comments on commit e13c487

Please sign in to comment.