mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-26 11:42:20 +01:00
Addressing a bug in the test logic
This commit is contained in:
@@ -114,7 +114,7 @@ int test_wc_RNG_GenerateBlock(void)
|
||||
ExpectIntEQ(wc_RNG_GenerateBlock(NULL, key , sizeof(key)),
|
||||
WC_NO_ERR_TRACE(BAD_FUNC_ARG));
|
||||
|
||||
for (i = 0; i <= (int)sizeof(key); i++) {
|
||||
for (i = 0; i < (int)sizeof(key); i++) {
|
||||
ExpectIntEQ(wc_RNG_GenerateBlock(&rng, key + i, sizeof(key) - i), 0);
|
||||
}
|
||||
DoExpectIntEQ(wc_FreeRng(&rng), 0);
|
||||
|
||||
Reference in New Issue
Block a user