Skip to content

Commit

Permalink
Fix invalid CAT check routine (project-chip#16977)
Browse files Browse the repository at this point in the history
  • Loading branch information
joonhaengHeo authored and chencheung committed Apr 6, 2022
1 parent 9c74849 commit 58a5481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/chip-cert/Cmd_GenCert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ bool HandleOption(const char * progName, OptionSet * optSet, int id, const char
break;

case 'a':
if (!ParseInt(arg, chip32bitAttr, 16) || chip::IsValidCASEAuthTag(chip32bitAttr))
if (!ParseInt(arg, chip32bitAttr, 16) || !chip::IsValidCASEAuthTag(chip32bitAttr))
{
PrintArgError("%s: Invalid value specified for the subject CASE Authenticated Tag (CAT) attribute: %s\n", progName,
arg);
Expand Down

0 comments on commit 58a5481

Please sign in to comment.