mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
libvirt-admin: do not crash on URI without a scheme
This commit is contained in:
parent
0855ef47dd
commit
7f35b6b658
@ -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")) {
|
||||
|
Loading…
Reference in New Issue
Block a user