Skip to content

Commit

Permalink
Fix build failure
Browse files Browse the repository at this point in the history
Signed-off-by: Songling Han <[email protected]>
  • Loading branch information
songlingatpan committed Oct 11, 2024
1 parent d9e0c96 commit 6032349
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/sha2/sha2_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ void oqs_sha2_sha224_inc_init_c(sha224ctx *state) {
void oqs_sha2_sha256_inc_init_c(sha256ctx *state) {
state->data_len = 0;
state->ctx = OQS_MEM_malloc(PQC_SHA256CTX_BYTES);
if (!stat->ctx) {
if (!state->ctx) {
return;
}
for (size_t i = 0; i < 32; ++i) {
Expand All @@ -534,7 +534,7 @@ void oqs_sha2_sha256_inc_init_c(sha256ctx *state) {

void oqs_sha2_sha384_inc_init_c(sha384ctx *state) {
state->ctx = OQS_MEM_malloc(PQC_SHA512CTX_BYTES);
if (!stateout->ctx) {
if (!state->ctx) {
return;
}
for (size_t i = 0; i < 64; ++i) {
Expand Down

0 comments on commit 6032349

Please sign in to comment.