mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Fix for new random seed crypto callback to properly reset error code in NOT_COMPILED_IN case.
This commit is contained in:
@ -2180,6 +2180,8 @@ int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
|
||||
ret = wc_CryptoCb_RandomSeed(os, output, sz);
|
||||
if (ret != NOT_COMPILED_IN)
|
||||
return ret;
|
||||
/* fall-through on not compiled in */
|
||||
ret = 0; /* reset error code */
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user