提交 7f35b6b6 编写于 作者: J Ján Tomko

libvirt-admin: do not crash on URI without a scheme

上级 0855ef47
......@@ -121,10 +121,10 @@ getSocketPath(virURIPtr uri)
}
if (!sock_path) {
if (STRNEQ(uri->scheme, "libvirtd")) {
if (STRNEQ_NULLABLE(uri->scheme, "libvirtd")) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("Unsupported URI scheme '%s'"),
uri->scheme);
NULLSTR(uri->scheme));
goto error;
}
if (STREQ_NULLABLE(uri->path, "/system")) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册