summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-11-18 12:28:57 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-11-18 12:28:57 +0000
commita92f98c630d8de116a027f77bef4d09910dcce02 (patch)
treed45b62f9621fa6bae8f91c79c8149f05235c11e8 /crypto
parent4385b556b4b59b4ea0d8bdf9597f079008cfb46a (diff)
PR: 2372
Submitted by: "W.C.A. Wijngaards" <wouter@nlnetlabs.nl> Reviewed by: steve Fix OpenBSD compilation failure.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/rand/randfile.c2
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);
}