Skip to content

Commit

Permalink
bad comparison (project-chip#35763)
Browse files Browse the repository at this point in the history
  • Loading branch information
woody-apple authored Sep 25, 2024
1 parent b0f5275 commit ed5c819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/MTRCertificates.mm
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ + (BOOL)isCertificate:(MTRCertificateDERBytes)certificate1 equalTo:(MTRCertifica
MTR_LOG_ERROR("Can't extract public key from second certificate: %s", ErrorStr(err));
return NO;
}
P256PublicKeySpan keySpan2(pubKey1.ConstBytes());
P256PublicKeySpan keySpan2(pubKey2.ConstBytes());

if (!keySpan1.data_equal(keySpan2)) {
return NO;
Expand Down

0 comments on commit ed5c819

Please sign in to comment.