From a92f98c630d8de116a027f77bef4d09910dcce02 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 18 Nov 2010 12:28:57 +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.25.1