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 Jul 14, 2023
1 parent 1bf9781 commit 2329345
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 2329345

Please sign in to comment.