diff options
-rw-r--r-- | src/lib/libcrypto/arc4random/getentropy_linux.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/crypto/getentropy_linux.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/arc4random/getentropy_linux.c b/src/lib/libcrypto/arc4random/getentropy_linux.c index 993c1d2a83..ea838cd03c 100644 --- a/src/lib/libcrypto/arc4random/getentropy_linux.c +++ b/src/lib/libcrypto/arc4random/getentropy_linux.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: getentropy_linux.c,v 1.2 2014/06/20 19:53:36 otto Exp $ */ | 1 | /* $OpenBSD: getentropy_linux.c,v 1.3 2014/06/20 20:18:19 deraadt Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> | 4 | * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> |
@@ -179,7 +179,7 @@ start: | |||
179 | if (fd == -1) { | 179 | if (fd == -1) { |
180 | if (errno == EINTR) | 180 | if (errno == EINTR) |
181 | goto start; | 181 | goto start; |
182 | goto nodevrandom; | 182 | goto nodevrandom; |
183 | } | 183 | } |
184 | fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); | 184 | fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); |
185 | #endif | 185 | #endif |
diff --git a/src/lib/libcrypto/crypto/getentropy_linux.c b/src/lib/libcrypto/crypto/getentropy_linux.c index 993c1d2a83..ea838cd03c 100644 --- a/src/lib/libcrypto/crypto/getentropy_linux.c +++ b/src/lib/libcrypto/crypto/getentropy_linux.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: getentropy_linux.c,v 1.2 2014/06/20 19:53:36 otto Exp $ */ | 1 | /* $OpenBSD: getentropy_linux.c,v 1.3 2014/06/20 20:18:19 deraadt Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> | 4 | * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> |
@@ -179,7 +179,7 @@ start: | |||
179 | if (fd == -1) { | 179 | if (fd == -1) { |
180 | if (errno == EINTR) | 180 | if (errno == EINTR) |
181 | goto start; | 181 | goto start; |
182 | goto nodevrandom; | 182 | goto nodevrandom; |
183 | } | 183 | } |
184 | fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); | 184 | fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); |
185 | #endif | 185 | #endif |