From: Dr. Stephen Henson Date: Thu, 18 Nov 2010 12:30:01 +0000 (+0000) Subject: PR: 2372 X-Git-Tag: OpenSSL-fips-2_0-rc1~943 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=70a5f5f9aba20329d0fd00c26ab9c69315472f20;p=oweals%2Fopenssl.git PR: 2372 Submitted by: "W.C.A. Wijngaards" Reviewed by: steve Fix OpenBSD compilation failure. --- 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); }