mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 11:32:05 -04:00
804. [bug] Attempting to obtain entropy could fail in some
situations. This would be most common on systems with user-space threads. [RT #1131]
This commit is contained in:
parent
55ddb88e53
commit
f8b3c62794
2 changed files with 6 additions and 2 deletions
4
CHANGES
4
CHANGES
|
|
@ -1,3 +1,7 @@
|
|||
804. [bug] Attempting to obtain entropy could fail in some
|
||||
situations. This would be most common on systems
|
||||
with user-space threads. [RT #1131]
|
||||
|
||||
803. [bug] Treat all SIG queries as if they have the CD bit set,
|
||||
otherwise no data will be returned [RT #749]
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: entropy.c,v 1.57 2001/02/05 23:00:18 bwelling Exp $ */
|
||||
/* $Id: entropy.c,v 1.58 2001/04/04 20:57:35 bwelling Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -395,7 +395,7 @@ get_from_filesource(isc_entropysource_t *source, isc_uint32_t desired) {
|
|||
ndesired = ISC_MIN(desired, sizeof(buf));
|
||||
n = read(fd, buf, ndesired);
|
||||
if (n < 0) {
|
||||
if (errno == EAGAIN)
|
||||
if (errno == EAGAIN || errno == EINTR)
|
||||
goto out;
|
||||
close(fd);
|
||||
source->bad = ISC_TRUE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue