diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2015-07-18 22:46:43 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2015-07-18 22:46:43 +0000 |
commit | 79e4634f9106f603994a18069cd6c73047d0a04f (patch) | |
tree | 6fd56687d0470b9dc6f6d69ed22e71720bd5467e /lib | |
parent | b0fe97027b1a67eea176258f89db2aa15c115458 (diff) |
rand_err doesn't exist anymore, coverity 78808
ok doug@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/rand/randfile.c | 6 |
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 * |