git://libvirt.org
/
libvirt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
51ea18a
)
qemu driver: Fix segfault in libvirt/libvirtd when uri->path is NULL.
author
Richard Jones
<rjones@redhat.com>
Thu, 10 Dec 2009 16:39:07 +0000 (16:39 +0000)
committer
Richard Jones
<rjones@redhat.com>
Thu, 10 Dec 2009 16:39:07 +0000 (16:39 +0000)
See also:
https://bugzilla.redhat.com/show_bug.cgi?id=545400#c1
src/qemu/qemu_driver.c
patch
|
blob
|
history
diff --git
a/src/qemu/qemu_driver.c
b/src/qemu/qemu_driver.c
index
2fb059d
..
e9cc8c3
100644
(file)
--- a/
src/qemu/qemu_driver.c
+++ b/
src/qemu/qemu_driver.c
@@
-2651,6
+2651,15
@@
static virDrvOpenStatus qemudOpen(virConnectPtr conn,
return VIR_DRV_OPEN_ERROR;
}
+ if (conn->uri->path == NULL) {
+ qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
+ _("no QEMU URI path given, try %s"),
+ qemu_driver->privileged
+ ? "qemu:///system"
+ : "qemu:///session");
+ return VIR_DRV_OPEN_ERROR;
+ }
+
if (qemu_driver->privileged) {
if (STRNEQ (conn->uri->path, "/system") &&
STRNEQ (conn->uri->path, "/session")) {