提交 7dc0ad4d 编写于 作者: A Andy Polyakov

rand/randfile.c: treat empty string in RAND_file_name as error.

Suggested in GH#1589.
Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 ba8fa4e5
......@@ -362,5 +362,5 @@ const char *RAND_file_name(char *buf, size_t size)
return NULL;
}
#endif
return buf;
return buf[0] ? buf : NULL;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册