PR: 2372
Submitted by: "W.C.A. Wijngaards" <wouter@nlnetlabs.nl> Reviewed by: steve Fix OpenBSD compilation failure.
This commit is contained in:
parent
4385b556b4
commit
a92f98c630
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue