mirror of
https://github.com/openssl/openssl.git
synced 2025-01-12 13:36:28 +08:00
EVP_RAND_generate: fix return check
Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17028)
This commit is contained in:
parent
7f608e4b1d
commit
a8f4cdd70c
@ -287,7 +287,7 @@ int BN_generate_dsa_nonce(BIGNUM *out, const BIGNUM *range,
|
||||
goto err;
|
||||
}
|
||||
for (done = 0; done < num_k_bytes;) {
|
||||
if (!RAND_priv_bytes_ex(libctx, random_bytes, sizeof(random_bytes), 0))
|
||||
if (RAND_priv_bytes_ex(libctx, random_bytes, sizeof(random_bytes), 0) <= 0)
|
||||
goto err;
|
||||
|
||||
if (!EVP_DigestInit_ex(mdctx, md, NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user