Skip to content

Commit

Permalink
Use the correct size for attestation challenge when converting to Java (
Browse files Browse the repository at this point in the history
  • Loading branch information
g-coppock authored and pull[bot] committed Nov 27, 2023
1 parent c70aba0 commit 2527484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/java/CHIPDeviceController-JNI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ JNI_METHOD(jbyteArray, getAttestationChallenge)
err = wrapper->Controller()->GetAttestationChallenge(attestationChallenge);
SuccessOrExit(err);

err = JniReferences::GetInstance().N2J_ByteArray(env, attestationChallenge.data(), sizeof(attestationChallenge.data()),
err = JniReferences::GetInstance().N2J_ByteArray(env, attestationChallenge.data(), attestationChallenge.size(),
attestationChallengeJbytes);
SuccessOrExit(err);

Expand Down

0 comments on commit 2527484

Please sign in to comment.