forked from wolfSSL/wolfssl
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);
|
ret = wc_CryptoCb_RandomSeed(os, output, sz);
|
||||||
if (ret != NOT_COMPILED_IN)
|
if (ret != NOT_COMPILED_IN)
|
||||||
return ret;
|
return ret;
|
||||||
|
/* fall-through on not compiled in */
|
||||||
|
ret = 0; /* reset error code */
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user