Skip to content

Commit

Permalink
[DCT] Fix acl extension having trailing null characters
Browse files Browse the repository at this point in the history
  • Loading branch information
step0035 committed Aug 27, 2022
1 parent e742932 commit 156afe4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions component/common/utilities/chip_porting.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,13 @@ const char* domainAllocator(const char *domain)
return matter_domain[2];
// chip-acl
if(strncmp(domain+4, "ac", 2) == 0)
{
// acl extension
if(strncmp(domain+7, "1", 1) == 0)
return matter_domain[17];

return matter_domain[8];
}

if(domain[0] == 'f')
{
Expand Down

0 comments on commit 156afe4

Please sign in to comment.