Skip to content

Commit

Permalink
Add check for subtype number
Browse files Browse the repository at this point in the history
  • Loading branch information
wqx6 committed Aug 23, 2024
1 parent 5d8f048 commit 2f1d0fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/shell/commands/Dns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ bool ParseSubType(int argc, char ** argv, Dnssd::DiscoveryFilter & filter)
if (filterType == Dnssd::DiscoveryFilterType::kCompressedFabricId)
{
VerifyOrReturnError(ArgParser::ParseInt(subtype + 2, code, 16), false);
VerifyOrReturnValue(code != 0, false);
}
else
{
Expand Down

0 comments on commit 2f1d0fd

Please sign in to comment.