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 committed Feb 22, 2022
1 parent fdb8114 commit c38a411
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 c38a411

Please sign in to comment.