summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/rand/randfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypto/rand/randfile.c b/lib/libcrypto/rand/randfile.c
index e54a009420d..6948a83634f 100644
--- a/lib/libcrypto/rand/randfile.c
+++ b/lib/libcrypto/rand/randfile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: randfile.c,v 1.40 2014/10/22 13:02:04 jsing Exp $ */
+/* $OpenBSD: randfile.c,v 1.41 2015/07/18 22:46:42 beck Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -90,7 +90,7 @@ int
RAND_write_file(const char *file)
{
unsigned char buf[BUFSIZE];
- int i, ret = 0, rand_err = 0;
+ int i, ret = 0;
FILE *out = NULL;
int n, fd;
struct stat sb;
@@ -131,7 +131,7 @@ RAND_write_file(const char *file)
fclose(out);
OPENSSL_cleanse(buf, BUFSIZE);
- return (rand_err ? -1 : ret);
+ return ret;
}
const char *