strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
random: Properly handle errors when reading from /dev/[u]random
[strongswan.git]
/
src
/
libstrongswan
/
plugins
/
random
/
random_rng.c
diff --git
a/src/libstrongswan/plugins/random/random_rng.c
b/src/libstrongswan/plugins/random/random_rng.c
index
36d5446
..
177b3c2
100644
(file)
--- a/
src/libstrongswan/plugins/random/random_rng.c
+++ b/
src/libstrongswan/plugins/random/random_rng.c
@@
-56,6
+56,7
@@
METHOD(rng_t, get_bytes, bool,
DBG1(DBG_LIB, "reading from random FD %d failed: %s, retrying...",
this->fd, strerror(errno));
sleep(1);
+ continue;
}
done += got;
}