diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-11-18 12:29:38 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-11-18 12:29:38 +0000 |
commit | 1bfe9acbbfac896e05060701c1e757f06d8822cf (patch) | |
tree | e5a6098a24d7d7ee8c0efbfa81282e855ffc1408 /crypto/rand | |
parent | 2d1e9ce753ce9492bd0484fa4026071b136441c5 (diff) |
PR: 2372
Submitted by: "W.C.A. Wijngaards" <wouter@nlnetlabs.nl>
Reviewed by: steve
Fix OpenBSD compilation failure.
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 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); } |