Fix for cast mismatch and spelling of state.

This commit is contained in:
David Garske
2018-08-07 11:18:29 -07:00
parent c6e075f077
commit 9db7ba2f0d

2
wolfcrypt/src/random.c Normal file → Executable file
View File

@ -859,7 +859,7 @@ int wc_RNG_HealthTest_ex(int reseed, const byte* nonce, word32 nonceSz,
}
#ifdef WOLFSSL_SMALL_STACK
drbg = (struct DRBG*)XMALLOC(sizeof(DRBG), NULL, DYNAMIC_TYPE_RNG);
drbg = (DRBG*)XMALLOC(sizeof(DRBG), NULL, DYNAMIC_TYPE_RNG);
if (drbg == NULL) {
return MEMORY_E;
}