From 70a5f5f9aba20329d0fd00c26ab9c69315472f20 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 18 Nov 2010 12:30:01 +0000 Subject: [PATCH] PR: 2372 Submitted by: "W.C.A. Wijngaards" Reviewed by: steve Fix OpenBSD compilation failure. --- crypto/rand/randfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.40.0