diff options
author | Andy Polyakov <appro@openssl.org> | 2016-09-20 17:08:03 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2016-09-21 21:09:11 +0200 |
commit | 7dc0ad4d6dca81a003be7fa1fbd58a55f4be8646 (patch) | |
tree | 1cad9a09a4a9c3c96ec7ec980ac63789c074f103 /crypto/rand | |
parent | ba8fa4e53a35a0c46d1e0e81a4d270a026fac2b9 (diff) |
rand/randfile.c: treat empty string in RAND_file_name as error.
Suggested in GH#1589.
Reviewed-by: Rich Salz <rsalz@openssl.org>
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 dfec2c7d6b..c96383a431 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -362,5 +362,5 @@ const char *RAND_file_name(char *buf, size_t size) return NULL; } #endif - return buf; + return buf[0] ? buf : NULL; } |