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:28:57 +00:00
parent 4385b556b4
commit a92f98c630

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