Skip to content

Commit 4c5e321

Browse files
committed
Add missing error check for wc_Sha512Final in unaligned memory test.
1 parent 70ccda7 commit 4c5e321

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

wolfcrypt/test/test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5508,6 +5508,8 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t sha512_test(void)
55085508
if (ret != 0)
55095509
ERROR_OUT(WC_TEST_RET_ENC_EC(ret), exit);
55105510
ret = wc_Sha512Final(&sha, hash);
5511+
if (ret != 0)
5512+
ERROR_OUT(WC_TEST_RET_ENC_EC(ret), exit);
55115513
}
55125514
#endif
55135515
} /* END LARGE HASH TEST */

0 commit comments

Comments
 (0)