Submitted by: "W.C.A. Wijngaards" <wouter@nlnetlabs.nl>
Reviewed by: steve

Fix OpenBSD compilation failure.
This commit is contained in:
Dr. Stephen Henson 2010-11-18 12:29:38 +00:00
parent 2d1e9ce753
commit 1bfe9acbbf

View File

@ -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);
}