Skip to content

Commit

Permalink
Fix bug due to typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pushkarnk committed Sep 17, 2024
1 parent 1eedbf9 commit d6744c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/native/c/com_canonical_openssl_drbg_OpenSSLDrbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ JNIEXPORT jbyteArray JNICALL Java_com_canonical_openssl_drbg_OpenSSLDrbg_generat
generate_seed((DRBG*)drbg_handle, output, num_bytes);

jbyteArray ret_array = (*env)->NewByteArray(env, num_bytes);
(*env)->SetBooleanArrayRegion(env, ret_array, 0, num_bytes, output);
(*env)->SetByteArrayRegion(env, ret_array, 0, num_bytes, output);

free(output);
return ret_array;
Expand Down

0 comments on commit d6744c8

Please sign in to comment.