提交 c2114afc 编写于 作者: G ganesh 提交者: Richard Levitte

RAND_egd_bytes: No need to check RAND_status on connection error.

Reviewed-by: NRich Salz <rsalz@openssl.org>
Reviewed-by: NRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1886)
上级 3ed93c86
...@@ -231,6 +231,8 @@ int RAND_egd_bytes(const char *path, int bytes) ...@@ -231,6 +231,8 @@ int RAND_egd_bytes(const char *path, int bytes)
int num, ret = -1; int num, ret = -1;
num = RAND_query_egd_bytes(path, NULL, bytes); num = RAND_query_egd_bytes(path, NULL, bytes);
if (num < 0)
goto err;
if (RAND_status() == 1) if (RAND_status() == 1)
ret = num; ret = num;
err: err:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册