提交 efc74757 编写于 作者: J Ján Tomko 提交者: Cole Robinson

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

(cherry picked from commit 7f35b6b6)
上级 c38669e1
......@@ -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.
先完成此消息的编辑!
想要评论请 注册