From 1bfe9acbbfac896e05060701c1e757f06d8822cf Mon Sep 17 00:00:00 2001
From: "Dr. Stephen Henson" <steve@openssl.org>
Date: Thu, 18 Nov 2010 12:29:38 +0000
Subject: [PATCH] PR: 2372 Submitted by: "W.C.A. Wijngaards"
 <wouter@nlnetlabs.nl> 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.25.1