summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2015-07-18 22:46:43 +0000
committerBob Beck <beck@cvs.openbsd.org>2015-07-18 22:46:43 +0000
commit94acfb572ad3d106d6701ecfa006a616f52b1235 (patch)
treeb25dc2e9e267789725d2ace8f0872dfd971dd592
parent9c978f0734966a4674af1ba5f0dc284976af50de (diff)
rand_err doesn't exist anymore, coverity 78808
ok doug@
-rw-r--r--lib/libssl/src/crypto/rand/randfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/src/crypto/rand/randfile.c b/lib/libssl/src/crypto/rand/randfile.c
index e54a009420d..6948a83634f 100644
--- a/lib/libssl/src/crypto/rand/randfile.c
+++ b/lib/libssl/src/crypto/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 *