Skip to contentSkip to conversation

ui/spice-core: fix segfault in monitor

PATCH In review Alon Levy 2 participants 2 messages Oct 4, 2011 – Oct 14, 2011

lore
Share & tools
lore

Alon Levy

author
#0 lore raw

PATCH 1/1 ui/spice-core: fix segfault in monitor

Fix segfault if a qxl device is present but no spice command line argument is given.

RHBZ 743251.

---
 ui/spice-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
ui/spice-core.c +1 -1
index 3cbc721..b14d1d9 100644
@@ -413,7 +413,7 @@ void do_info_spice(Monitor *mon, QObject **ret_data)
     int port, tls_port;
     char version_string[20]; /* 12 = |255.255.255\0| is the max */
 
-    if (!spice_server) {
+    if (!spice_server || !opts) {
         *ret_data = qobject_from_jsonf("{ 'enabled': false }");
         return;
     }
Signature · 1 line
1.7.6.4
#1 lore raw
Quoted 4 lines · Alon Levy

Fix segfault if a qxl device is present but no spice command line argument is given.

RHBZ 743251.

Added to spice patch queue.

thanks,
Gerd