projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
RAND_egd_bytes: No need to check RAND_status on connection error.
[openssl.git]
/
crypto
/
rand
/
rand_egd.c
diff --git
a/crypto/rand/rand_egd.c
b/crypto/rand/rand_egd.c
index f77af415c016f47022d3534bd698e113b0440f00..dd58b214981efd3d1d4fbf4e0f537e9da2a69959 100644
(file)
--- a/
crypto/rand/rand_egd.c
+++ b/
crypto/rand/rand_egd.c
@@
-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: