Skip to content

Commit 8c3d471

Browse files
committed
linuxkm/module_hooks.c: in wolfssl_init() FIPS_OPTEST_FULL_RUN_AT_MODULE_INIT code path (currently unused), add missing declaration for i.
1 parent a7bf5e5 commit 8c3d471

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

linuxkm/module_hooks.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -925,8 +925,11 @@ static int wolfssl_init(void)
925925
#endif
926926

927927
WOLFSSL_ATOMIC_STORE(*conTestFailure_ptr, 0);
928-
for (i = 0; i < FIPS_CAST_COUNT; ++i)
929-
fipsCastStatus_put(i, FIPS_CAST_STATE_INIT);
928+
{
929+
int i;
930+
for (i = 0; i < FIPS_CAST_COUNT; ++i)
931+
fipsCastStatus_put(i, FIPS_CAST_STATE_INIT);
932+
}
930933
/* note, must call fipsEntry() here, not wolfCrypt_IntegrityTest_fips(),
931934
* because wc_GetCastStatus_fips(FIPS_CAST_HMAC_SHA2_256) isn't available
932935
* anymore.

0 commit comments

Comments
 (0)