Skip to content

Commit

Permalink
Fix iteration in ACL read
Browse files Browse the repository at this point in the history
Sentinel error is expected when iteration ends.
  • Loading branch information
mlepage-google committed Dec 7, 2021
1 parent 1e2b34c commit 239fd7f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,8 @@ CHIP_ERROR AccessControlAttribute::ReadAcl(AttributeValueEncoder & aEncoder)
{
ReturnErrorOnFailure(encoder.Encode(codec));
}
return err;
ReturnErrorCodeIf(err != CHIP_NO_ERROR && err != CHIP_ERROR_SENTINEL, err);
return CHIP_NO_ERROR;
});
}

Expand Down

0 comments on commit 239fd7f

Please sign in to comment.