diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-11-18 12:30:01 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-11-18 12:30:01 +0000 |
commit | 70a5f5f9aba20329d0fd00c26ab9c69315472f20 (patch) | |
tree | 234a578dc9c097495549734e144ce04650384d34 /crypto/rand/randfile.c | |
parent | ac7797a7225b2b014a1dd83db610ec4f4aff597a (diff) |
PR: 2372
Submitted by: "W.C.A. Wijngaards" <wouter@nlnetlabs.nl>
Reviewed by: steve
Fix OpenBSD compilation failure.
Diffstat (limited to 'crypto/rand/randfile.c')
-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 678b0fe0d6..f9b709e6d5 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -310,7 +310,7 @@ const char *RAND_file_name(char *buf, size_t size) * to something hopefully decent if that isn't available. */ - if (!ok) + if (!buf[0]) if (BUF_strlcpy(buf,"/dev/arandom",size) >= size) { return(NULL); } |