diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-11-18 12:28:57 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-11-18 12:28:57 +0000 |
commit | a92f98c630d8de116a027f77bef4d09910dcce02 (patch) | |
tree | d45b62f9621fa6bae8f91c79c8149f05235c11e8 /crypto | |
parent | 4385b556b4b59b4ea0d8bdf9597f079008cfb46a (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.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); } |