diff options
author | Rich Salz <rsalz@openssl.org> | 2017-07-17 02:52:26 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-07-17 07:46:49 -0400 |
commit | 54e5ba058b4f2c6042c14d44868077e9ffcff818 (patch) | |
tree | 034f4ded133914ea8b07b0b623834eac7d84ae9e /crypto/rand | |
parent | f1b8b0010a5cdd76d1284ea47e9b5995dcd6f089 (diff) |
Fix use-after-free
Also fix a RANDerr call.
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3947)
Diffstat (limited to 'crypto/rand')
-rw-r--r-- | crypto/rand/randfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index 904653f3bb..f502642997 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -176,7 +176,7 @@ int RAND_write_file(const char *file) if (out == NULL) out = openssl_fopen(file, "wb"); if (out == NULL) { - RANDerr(RAND_F_RAND_LOAD_FILE, RAND_R_CANNOT_OPEN_FILE); + RANDerr(RAND_F_RAND_WRITE_FILE, RAND_R_CANNOT_OPEN_FILE); ERR_add_error_data(2, "Filename=", file); return -1; } |