mirror of
https://github.com/openssl/openssl.git
synced 2025-03-31 20:10:45 +08:00
RAND_egd_bytes: No need to check RAND_status on connection error.
Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1886)
This commit is contained in:
parent
3ed93c8633
commit
c2114afc16
@ -231,6 +231,8 @@ int RAND_egd_bytes(const char *path, int bytes)
|
||||
int num, ret = -1;
|
||||
|
||||
num = RAND_query_egd_bytes(path, NULL, bytes);
|
||||
if (num < 0)
|
||||
goto err;
|
||||
if (RAND_status() == 1)
|
||||
ret = num;
|
||||
err:
|
||||
|
Loading…
x
Reference in New Issue
Block a user